Javascript Quiz: How well do you know Async Functions in JS

Опубликовано: 05 Март 2026
на канале: Programming Geek
13
2

Are you ready for another code challenge? Join me in this video as you test your coding knowledge with the simple quiz questions.

Don't forget to make your guess in the comments below.

-------------------------------------------------------------------------------------------

🔔Like and subscribe for more videos. 🔔
------------------------------------------------------------------------------------------

Answer: OPTION A: 10

Explanation:
In this async function, await 10 simply waits for the resolution of the promise that resolves with the value 10. Since there's no actual asynchronous operation or promise involved, await just unwraps the value 10 and assigns it to result.

The console.log(result) then outputs 10.