結果 : synchronous api call in javascript