@SiRexable

Nice explanation, but just to add even if you put setTimeOut 0ms it will still excecute last after all synchronus code is done and stack is empty. Thats because async funtions appear on the stack at call time and are immediately pushed off and added to webapis stack where count down begins and since its 0 so the callback of setTimeout gets immediately it gets pushed to task queue ( not call stack ), where spinning event loop is gonna pop this callback function on the main stack once its empty. So even if you have 5 set time outs with 0 ms and 1 console log at the end set timeouts gonna run after console.log because as i mentioned above async functions are pushed back on stack only after main stack is empty

@billynovrando9383

"Not every single function that takes an argument is asynchronous, but in general, most function that takes function argument are going to be asynchronous"

Thank you, this line clears things for me. Much appreciated

@richardwalters9249

seems that, if you get things confused, you can replace synchronous with the word "sequential"execution  ... and asynchronous with "parallel" execution.  Which type blocks will also become clear as well.

@nathalierautell5259

I love that you are straight to the point with a clear and short explanation. It makes things a lot easier. Appreciated! 🤩

@jeffcarey4285

Describing Javascript execution as multi-threaded (as at 1:15) is a bad idea and teaches the wrong mental model. Look up concepts like run to completion, event loop, call stack to understand what's going on better. For example, in the setTimeout call, even if you put the delay to 0 instead of 100 it will still print 10. If you understand the concepts I mentioned you will know why.

@queenscript

Wow, as someone who feels more intermediate than total beginner, I felt that you really validated my learning curve. Thank you!

@srikanthathikari9995

100% crystal clear explanation. I was looking at  videos that are lengthy, I could not get my head around them. Really liked the way you explained async with then example. Thanks tons.

@mahir_labib

Great video! ""Not every single function that takes an argument is asynchronous, but in general, most function that takes function argument are going to be asynchronous"" as crisp as it can get.

@saritadas7716

every single video from your channel clears so many concepts in my head, i cant even start to tell you..thank you so much from the core of my heart <3

@edinburghrules

I don't think fetch returns quicker than set time out. Fetch returns first because it gets put in to the micro-task queue and setTimeout gets put in to the callback queue. Anything in the micro-task queue gets preference and will be executed before anything in the callback queue even if setTimeout is faster than fetch.

@MoeCompSci

I love the idea of me one day being an expert programmer. But this went over my head. I didn't understand. But I enjoyed watching it. I'm new to programming. I'm sure it did something to my subconscious mind that will help me in becoming a programmer.

@kimkim-bm8he

you are the best youtube web dev creator. Love the show. My tip is that instead of having to type console.log() each time. Just type log and vscode will auto complete the code for you. THanks for the video

@shanibburney8290

Thanks alot. I have learned promises callbacks and async await but still I was confused between async and sync terms. Your example completely cleared all concepts async JS.

@BeautifulTurkish

Note that JS async is single threaded on both browser and NodeJS.

@asimadam6224

Very straightforward I wonder why they're not just teaching like that in schools

@evergreen7781

I am a big big fan of your short & crisp concept clearing videos 🧡🧡🧡

@muhammadjunaid3684

Dude, you just gave the best start to learn more about Async Programming.

btw, whats your VS code theme, font, setup...

@thesue112-v2r

I’ve noticed a guitar in the background in your videos. Did you make the intro riff :P

@jthomasaurus

Always a great resource for me, short and full of relevant info. Plus I like the clicky keyboard sounds. Awesome video, yet again! Thanks, Kyle!

@chienhsiang-hung

the best explaination of the async feature in js ever