
Most developers think the output is 3, 1, 2, 4. They are wrong. ❌
await pauses the function execution NOT the main thread.
JS finishes the script (logs '4') and then logs '2'
📚 Learn JS by Questioning Full Playlist👇
youtube.com/playlist?list=…

English











