const function1 = () => { let isSuccess = false function2( // This a synchronous function it always return true or false. If result is true, ı want to c