Why we have to add an 'async' declaration word to the javascript function which call a sync javascript function?
I want to know: why we have to add the word:'async' declaration to the function which call a sync function? Shouldn't it be declared as 'sync'? Sorry, I am not familiar with 'async/await',and maybe this is only a basic javascript…