Async JavaScript & Callback Functions -- Tutorial for Beginners

  Рет қаралды 77,136

ColorCode

ColorCode

Күн бұрын

Asynchronous JavaScript, Synchronous Programming, Callbacks, Callback Hell, Promises and Async Await. What do they all mean and why do you need them?
This is episode 11 in a 10 part series I’m calling 10 things javascript. Today for episode 11, we’re looking at Synchronous and Asynchronous Programming with JavaScript.
Full playlist here: • 20 Things JavaScript D...
Async JavaScript from the series "10 Things JS Developers Should Know"
by ColorCode.io, Sina Jazayeri
** Announcement **
Full JavaScript Mastery course is coming! Details at the end of the video. Sign up for Early Access here:
www.colorcode.io/js-mastery
0:00:00 Intro
0:01:38 How JavaScript runs
0:02:03 Synchronous Programming
0:04:45 Synchronous example (Live Coding 🔴)
0:08:08 Asynchronous Programming
0:08:47 Asynchronous example (Live Coding 🔴)
0:12:04 Callback Functions (Live Coding 🔴)
0:18:15 Callback Hell 😈
0:22:00 Promises and Async/Await
0:23:00 Async most common examples

Пікірлер: 360
@ColorCodeio
@ColorCodeio Жыл бұрын
🎉👨🏻‍💻Episode 11: Asynchronous JavaScript, Callback Functions, and Callback Hell 😈
@techbro3085
@techbro3085 Жыл бұрын
Very Nice video. And glad to hear that you are asynchronously work on this series and js mystery course 😄.
@prjk7339
@prjk7339 8 ай бұрын
at 21:02 why did you use arrow functions and then inside them call things? why you didn't directly pass things funstions? thing1(thing2(thing3()))
@charlilyyyy
@charlilyyyy 4 ай бұрын
@@prjk7339because if he already defined the function u can do it, he just showing the flow if you just call thing1()
@codeforbreakfast
@codeforbreakfast 5 ай бұрын
Bro what?? 62k subs for this guy, I was watching the video with thought that this some million subs channel bro... THE QUALITY
@ColorCodeio
@ColorCodeio 5 ай бұрын
Thanks :) every subscriber matters to me
@oleksandrfomin326
@oleksandrfomin326 Жыл бұрын
Production quality is incredible as well as the content itself. Great job!
@ColorCodeio
@ColorCodeio Жыл бұрын
Thank you
@Mtoun974
@Mtoun974 7 ай бұрын
I'm glad that KZbin recommend me this episode, thanks color-code
@pedrolelis7854
@pedrolelis7854 Жыл бұрын
I want you to know that you are one of the best when it comes to teaching programming skills on KZbin. Although the number of views can make you feel the opposite, I’m telling you because it’s important, at the end we are not numbers, we are people! I’m from Brazil, I’m not an english native speaker and your teaching style, the way you treat the subject is one of a kind! Thank you for providing us such knowledge with your great energy! I am very happy to see you again! Big hugs from Brazil!
@ColorCodeio
@ColorCodeio Жыл бұрын
Thank you. Made my day. ♥️
@simonshurety3870
@simonshurety3870 Жыл бұрын
I agree 100%
@prince5922
@prince5922 Жыл бұрын
Finally! Couldn't believe my eyes when I saw a new upload by colorCode. Had to look twice lol. The previous 10 videos of this series, definitely made me evolve to a whole different level and I simply can't wait for more. I hope we do get a video on event loop, would be a dream come true! Thank you for the great content Sina! :)
@ColorCodeio
@ColorCodeio Жыл бұрын
haha awesome. Next episode in 2 weeks.
@hasibur.rahman
@hasibur.rahman Жыл бұрын
After 6 months of waiting. Please upload more often.
@ColorCodeio
@ColorCodeio Жыл бұрын
Next video in 2 weeks
@ThanujaFernando-vu5dh
@ThanujaFernando-vu5dh 9 ай бұрын
One of the best content creators I've seen
@daniel7007
@daniel7007 Жыл бұрын
Awesome🔥🔥🔥 Really looking forward for TypeScript
@longingbydesign
@longingbydesign Жыл бұрын
The production quality of your videos is simply outstanding. Well done, again! I still miss the sight of the window from your previous location though.
@FarazKhan-yi3pv
@FarazKhan-yi3pv Жыл бұрын
AMAZING EXLANATION!!
@jatilyadav4000
@jatilyadav4000 Жыл бұрын
Great Explaination. More such video should be uploaded.
@LordmkKING67
@LordmkKING67 Жыл бұрын
Honestly, an amazing aproach to making an explanation video. With visual and real life examples. It is also a lot more memorable, then just looking at some code examples. Will deffinitely check out all the parts. Just wanted to say, GREAT JOB, awesome tutorial. Keep it up!
@reluminopraha5948
@reluminopraha5948 10 ай бұрын
Well explained.
@Wertasile
@Wertasile 8 ай бұрын
Great Visuals!
@Walid-Sahab
@Walid-Sahab Жыл бұрын
waiting for more videos of this playlist. it looks that you put a lot of effort to make videos interesting so take your and make such a piece of art. We are waiting.
@user-mw5bm2xh9x
@user-mw5bm2xh9x 6 ай бұрын
thanks for the lesson
@adamtull1305
@adamtull1305 Жыл бұрын
Love this! Helps a lot
@axmedaxmedov9456
@axmedaxmedov9456 Жыл бұрын
I follow you from Azerbaijan, there is no one who explains these topics as well as you
@ColorCodeio
@ColorCodeio Жыл бұрын
Hello Azerbaijan 🇦🇿
@davidtillery6250
@davidtillery6250 Ай бұрын
Great tutorial!
@sh9vch9nk0
@sh9vch9nk0 3 ай бұрын
Thank you for such a detailed video, it was really interesting and very helpful!) 😊💓💓
@qpqp8542
@qpqp8542 10 ай бұрын
I've seen 2 of your videos and you are awesome, the production quality is just top notch(the editing, lighting, music, I just love it).
@ColorCodeio
@ColorCodeio 10 ай бұрын
Thanks, glad you like them!
@burhanshah5855
@burhanshah5855 Жыл бұрын
Thank you. Please continue this series.
@ColorCodeio
@ColorCodeio Жыл бұрын
👍🤘
@kazemqanati7120
@kazemqanati7120 5 ай бұрын
دمت گرم ، چقدر خوب توضیح میدی
@wtl912
@wtl912 Жыл бұрын
You're simply awesome. Explanations, visuals and even your water breaks. This is fantastic.
@ColorCodeio
@ColorCodeio Жыл бұрын
👍💦
@tomhardy1856
@tomhardy1856 Жыл бұрын
A much appreciated comeback :) fantastic channel
@ColorCodeio
@ColorCodeio Жыл бұрын
👍
@giusepperusso7193
@giusepperusso7193 Жыл бұрын
Complimenti dall'Italia, spiegazione semplicemente perfetta.
@demiancoorey2394
@demiancoorey2394 6 ай бұрын
Superb explanation
@aylanelson1012
@aylanelson1012 Жыл бұрын
I like how the video gives a quick over view of the topic and than has a live coding component that can be done in parallel, great way to learn!
@ColorCodeio
@ColorCodeio Жыл бұрын
Thank you
@richardradcliffe6178
@richardradcliffe6178 Жыл бұрын
Great video, thank you so much.
@udaym4204
@udaym4204 9 ай бұрын
This video is worth million of dollar
@ColorCodeio
@ColorCodeio 9 ай бұрын
💰💰
@judonomi
@judonomi Жыл бұрын
So happy to see you back!!!!!
@ColorCodeio
@ColorCodeio Жыл бұрын
Thanks Judo. Good to be back :)
@aminaabdulkadir5130
@aminaabdulkadir5130 Жыл бұрын
Glad to see you again 🤩😍 Thank you
@ColorCodeio
@ColorCodeio Жыл бұрын
Thank you. Glad to be back.
@akshaychavan5511
@akshaychavan5511 5 ай бұрын
This channel is so incredible, yet so underrated! Love you
@ColorCodeio
@ColorCodeio 4 ай бұрын
Thanks so much
@rameenana
@rameenana 12 күн бұрын
Your explanation was the easiest to grasp from the videos I've seen. Thanks for this, man. Appreciate your work.
@antonchigurh4125
@antonchigurh4125 Жыл бұрын
You've got a gift for making the seemingly inexplicable, explicable! Subbed.
@ColorCodeio
@ColorCodeio Жыл бұрын
Thank you 🙏
@SilenceOfuniverse
@SilenceOfuniverse 3 ай бұрын
Honestly this helpful for mee❤❤❤
@jitulborah_10
@jitulborah_10 Жыл бұрын
the man who cleared majority of my js doubts❣️
@ColorCodeio
@ColorCodeio Жыл бұрын
🙇‍♂️
@raulnardone7062
@raulnardone7062 Жыл бұрын
after watching this video I promise to watch the previous ones thank you very much 😀
@isuru_xyz
@isuru_xyz 9 ай бұрын
great teacher. keep going!
@ColorCodeio
@ColorCodeio 8 ай бұрын
Thank you!
@Danny-wu5ct
@Danny-wu5ct Жыл бұрын
You are the man! I appreciate you and your content!
@ColorCodeio
@ColorCodeio Жыл бұрын
And I appreciate you Danny!
@richardmartyns7978
@richardmartyns7978 9 ай бұрын
Man u are a legend, I just found out your channel on KZbin and I love the way you are simplifying JavaScript.
@ColorCodeio
@ColorCodeio 9 ай бұрын
Welcome aboard!
@meryemk.4884
@meryemk.4884 8 ай бұрын
You're one of the best at teaching and explaining code!! Truly complex subjects explained to easily. Very glad I found your channel
@ColorCodeio
@ColorCodeio 8 ай бұрын
Thanks Meryem
@mickeymacke1780
@mickeymacke1780 Жыл бұрын
Yea this channel is bound to blow up, you are really good at this. Thank you for such engaging and informative videos‼
@ColorCodeio
@ColorCodeio Жыл бұрын
Thanks Mickey
@davideugene7911
@davideugene7911 Жыл бұрын
Bonjour, C'était vraiment excellent. Merci :)
@azamataslidinov5513
@azamataslidinov5513 11 ай бұрын
Bro finally I been having trouble with async for a while
@genesipes8532
@genesipes8532 Жыл бұрын
You have no idea how excited I was to see a new upload and an 11th video to a 10 part series! My wife thinks I am a total nerd. Thank you, and please keep up the videos. So entertaining and informative.
@ColorCodeio
@ColorCodeio Жыл бұрын
You and me both buddy. Nerds over here 🤘Love it and thanks for the support.
@martinhansen9406
@martinhansen9406 5 ай бұрын
You are honestly the best ive seen at explaining JS. ty for that
@ColorCodeio
@ColorCodeio 4 ай бұрын
Ty!
@deepeshnair
@deepeshnair Жыл бұрын
You are back!!! Thank you 🙏
@ColorCodeio
@ColorCodeio Жыл бұрын
🤘
@VerySoftTea
@VerySoftTea Жыл бұрын
Your tutorials are so good that I can't believe they're free to watch here on youtube. Thank you so much for making these. I'm a complete beginner and your videos get me to understand these topics much faster than any other resource I could find online.
@ColorCodeio
@ColorCodeio Жыл бұрын
Glad to hear it. Good luck in your coding journey!
@aballahsameh3597
@aballahsameh3597 Жыл бұрын
عظمة ❤️
@kristijanlazarev
@kristijanlazarev 10 ай бұрын
Actualy perfect video for me, on my way to the promises video now thanks !!❤
@ColorCodeio
@ColorCodeio 10 ай бұрын
Nice!
@mohammadlalani
@mohammadlalani 10 ай бұрын
ممنون سینا جان. ویدیوهات خیلی به من کمک کرد.
@ColorCodeio
@ColorCodeio 10 ай бұрын
👍
@HuyLe-he6je
@HuyLe-he6je 6 ай бұрын
Thanks for the explanation! Hit the subscribed with the bell
@ColorCodeio
@ColorCodeio 5 ай бұрын
Awesome, thank you!
@Oliver_twist00
@Oliver_twist00 10 ай бұрын
You are a great teacher and you calm me down when i feel like im in a hurrican like storm im ill prepared for, thank you. Please continue to do these videos!
@ColorCodeio
@ColorCodeio 10 ай бұрын
Thank you!♥️
@Oliver_twist00
@Oliver_twist00 10 ай бұрын
@@ColorCodeio no sir thank you
@nouhabc194
@nouhabc194 Жыл бұрын
this is the best video explaining the asynchronous in js ,thank you so much bro ❤
@ColorCodeio
@ColorCodeio Жыл бұрын
♥️
@Moinshaikh611
@Moinshaikh611 8 ай бұрын
🎉🎉🎉 Keep going brother Your teaching is very insightful Very detailed informative Thankyou so much ❤
@creed_forever
@creed_forever 27 күн бұрын
Beautiful representation
@jakubfrei3757
@jakubfrei3757 Жыл бұрын
You deserve waaaaay more subs my dude, excelent content
@ColorCodeio
@ColorCodeio Жыл бұрын
👍👍
@sai1531
@sai1531 5 ай бұрын
The way you teach is absolutely wonderful! Waiting for your JavaScript Mastery course 🙂
@ColorCodeio
@ColorCodeio 4 ай бұрын
Very soon!
@karlee8608
@karlee8608 Жыл бұрын
Thank you sir for the clear explanation.
@ColorCodeio
@ColorCodeio Жыл бұрын
You are welcome
@tigranharutyunyan7674
@tigranharutyunyan7674 Жыл бұрын
Great in-depth approach to teaching with humor. Thank you for the series of videos. Please keep recording new ones. May a series of algoriths❤
@ColorCodeio
@ColorCodeio Жыл бұрын
Thank you!
@mahmoudfarag1122
@mahmoudfarag1122 Жыл бұрын
very nice work
@wissensbuff
@wissensbuff Ай бұрын
Omg Listen to that Banger at the Beginn give me shivers
@codepearls
@codepearls 9 ай бұрын
After a long time! I have understood callback function.
@ColorCodeio
@ColorCodeio 9 ай бұрын
Nice!
@W1nDs0R
@W1nDs0R Жыл бұрын
Amazing video, thanks so much for sharing! :)
@ColorCodeio
@ColorCodeio Жыл бұрын
Thanks for watching!
@JonnyReturns
@JonnyReturns Жыл бұрын
The way you matched the overlay with the perspective of the door in the background pleases me greatly.
@ColorCodeio
@ColorCodeio Жыл бұрын
Good eye
@MotorcyclesandZen
@MotorcyclesandZen 4 ай бұрын
Great explaination. Great video.
@ColorCodeio
@ColorCodeio 3 ай бұрын
🙏
@Fred-my9er
@Fred-my9er Жыл бұрын
Thanks for making JavaScript a joy to learn!
@ColorCodeio
@ColorCodeio Жыл бұрын
Fantastic to hear ♥️
@samcassidy2441
@samcassidy2441 3 ай бұрын
These videos are fantastic and I'm strangely hungry now
@datsmydab-minecraft-and-mo5666
@datsmydab-minecraft-and-mo5666 Жыл бұрын
So good!!!
@AnnabelleWhite-js6rh
@AnnabelleWhite-js6rh 6 ай бұрын
This is my favorite coding channel!
@ColorCodeio
@ColorCodeio 6 ай бұрын
♥️
@Gaagaagoogoo677
@Gaagaagoogoo677 11 ай бұрын
watched all 10 videos in a day and loved the way you teach. not boring and put concepts in a easy to understand. please do more of JS basics and fundamentals. maybe a video regarding algorithms and data structure ( I know it's not JS necessarly) but maybe the thought process on how to breakdown problems...etc.
@ColorCodeio
@ColorCodeio 11 ай бұрын
Thanks! Glad you like material.
@AsakuraAvan
@AsakuraAvan Жыл бұрын
I really like your teaching style. Please create more conceptual videos like this for other technologies for frontend/backend/database.
@ColorCodeio
@ColorCodeio Жыл бұрын
👍
@hosseinabdolmotalebi4349
@hosseinabdolmotalebi4349 16 күн бұрын
dadash video hat kheyli keyfiatesh balast va kheyli khub tozih midi , damet garm
@iambrijeshtoo
@iambrijeshtoo 11 ай бұрын
Thank you!
@elvispontes4165
@elvispontes4165 6 ай бұрын
I would love to see a React series like that on your channel. Thanks for sharing your knowledge !!!!!
@ivo_sa
@ivo_sa 2 ай бұрын
unbeliveable quality, i`m currently learning javaScript and wow your videos are so full of value and are soooooo good explained! Thank you! Greets from germany :)
@ColorCodeio
@ColorCodeio 2 ай бұрын
Hello Germany 🇩🇪
@The.abiola
@The.abiola Ай бұрын
First of all, I have to say you deserve more subscribers. your content is too rich. Your teaching method and video production is spot on! While watching I kept asking if there was a way I could like your video more than once 😅 Thanks for simplifying these concepts! 👏👏👏
@yassiraittata3032
@yassiraittata3032 4 ай бұрын
the best explanation to this topic on the internet.
@ColorCodeio
@ColorCodeio 4 ай бұрын
♥️
@CodeWithBehram7497
@CodeWithBehram7497 7 ай бұрын
the most entertaining video on async hats off🎉
@ColorCodeio
@ColorCodeio 4 ай бұрын
🙏
@luci-goosey
@luci-goosey Жыл бұрын
I love the way you teach and speak
@ColorCodeio
@ColorCodeio Жыл бұрын
Thank you James
@Sat-7
@Sat-7 Жыл бұрын
Well well well, As always the first video pops out right after opening KZbin and no doubt everyone would have just watched as it's always super precised good quality content for the learners. Thanks for the video Sina....💌🇮🇳
@ColorCodeio
@ColorCodeio Жыл бұрын
Thanks Sat :)
@MusicOnWorldOff-kk2bx
@MusicOnWorldOff-kk2bx 7 ай бұрын
I don't comment on tutorials very often because they are all very similar but I am very impressed with your videos. Yours really stand out. The way you breakdown these difficult concepts using visuals as well as writing out the code was very helpful. I look forward to your javascript course when it's released.
@ColorCodeio
@ColorCodeio 2 ай бұрын
Tysm!
@juanthoriqpahlev9875
@juanthoriqpahlev9875 5 ай бұрын
I really love ur videos how u saying things in a fun way, please do more about OOP, Function Programming, and other things that we need to understand using javascript
@ColorCodeio
@ColorCodeio 4 ай бұрын
Functional programming coming soon
@tayseersabha6738
@tayseersabha6738 Жыл бұрын
Despite not being a beginner, I really liked the video and your teaching style! Keep going!
@ColorCodeio
@ColorCodeio Жыл бұрын
Thank you 👍
@mrSargi7
@mrSargi7 Жыл бұрын
So glad to see you back! Will there be any typescript videos in the future ?
@ColorCodeio
@ColorCodeio Жыл бұрын
Possibly! I like to cover JavaScript fundamentals that would give everyone a stronger foundation but Typescript is definitely on my roadmap.
@mrSargi7
@mrSargi7 Жыл бұрын
@@ColorCodeio good to hear that, can't wait to see TS content with your explanations. You really have a knack for explaining complex things as easy as possible!
@JohnWick-hp8wn
@JohnWick-hp8wn 2 ай бұрын
Very beautifully explained. blown away with the clean delivery and how much effort & love you put into it
@ColorCodeio
@ColorCodeio 2 ай бұрын
Thank you! Qoli says hi
@daretobedangerous6552
@daretobedangerous6552 9 ай бұрын
eventlistener is synchronous by it self, it's the logic inside the call back that may make it asynchronous. Apart from, that brilliant!
@harshalnath4853
@harshalnath4853 10 ай бұрын
this is so underated channel for learning javascript, this guys explains things precisely and with the logical reasons that can clearly visualize things in your head about this hard topics, love u man you doing great work
@ColorCodeio
@ColorCodeio 10 ай бұрын
Thank you ♥️
@dhrubajyotibhattacharjee6609
@dhrubajyotibhattacharjee6609 Ай бұрын
Came across this channel recently and I love the way I am learning. Sir, you are amazing. Thanks! In the spirit of the video, going off the main route for a tiny bit, I would like to ask... how do you change the font family in the dev tools on a browser (Chrome, MS Edge or Firefox)? Would anyone like to wait a little to answer this query?
@eumm11
@eumm11 Жыл бұрын
you are the best!
@andresbc2344
@andresbc2344 Жыл бұрын
Excellent example. I finally got callbacks!
@ColorCodeio
@ColorCodeio Жыл бұрын
Nice!
@elyoaprogrammer
@elyoaprogrammer Жыл бұрын
Excellent video, Excellent content, Excellent series overall, I would like a video about event loop detailed. Thanks a lot for this contents.
@ColorCodeio
@ColorCodeio Жыл бұрын
Thanks for the idea!
@udaym4204
@udaym4204 9 ай бұрын
Best video of the universe Thank you don't stop to make video your video are very indepth knowledge and easy to understand and fun . thanks again
@ColorCodeio
@ColorCodeio 9 ай бұрын
Thank you, I will
@udaym4204
@udaym4204 2 ай бұрын
@@ColorCodeio brother please start making video in depth how js work behind the scence .
@albertosacco4472
@albertosacco4472 7 ай бұрын
Thanks bro, superb teaching skills 🪐
@ColorCodeio
@ColorCodeio 7 ай бұрын
Thank you!
@JeatBunkie
@JeatBunkie Жыл бұрын
Most underrated channel for Javascript. Seriously your videos are so good, you will probably blow up if you can stay consistent. Either way, thank you brother. p.s. I am also a big Sade fan lol
@ColorCodeio
@ColorCodeio Жыл бұрын
Haha nice! First person to notice Sade.
@kooyaw4445
@kooyaw4445 4 ай бұрын
Awesome brother
@ColorCodeio
@ColorCodeio 3 ай бұрын
✌️
@UndercoverMCResspect
@UndercoverMCResspect Жыл бұрын
Excellent video, i've been following you from the beginning and i can pretty much say that you made me understand the basic concepts of java script quite easily. From a person who had 0 knowledge in programming, to having completed several courses from Udemy, I can say that you have the best method and way of teaching for a beginner. Keep up the good work.
@ColorCodeio
@ColorCodeio Жыл бұрын
That's awesome, so good to hear! 👍
@user-qe6km5px4v
@user-qe6km5px4v 8 ай бұрын
hey Qoli can you please make a video on a series of JavaScript interview questions and most likely on execution context and memory allocation
JavaScript Promises  -- Tutorial for Beginners
37:05
ColorCode
Рет қаралды 101 М.
JavaScript Closures Tutorial (Explained in depth)
19:03
ColorCode
Рет қаралды 59 М.
Monster dropped gummy bear 👻🤣 #shorts
00:45
Yoeslan
Рет қаралды 12 МЛН
ISSEI funny story😂😂😂Strange World | Pink with inoCat
00:36
ISSEI / いっせい
Рет қаралды 22 МЛН
7 Benefits of First-Class Functions - JavaScript Tutorial
25:04
ColorCode
Рет қаралды 1,5 М.
Async JS Crash Course - Callbacks, Promises, Async Await
24:31
Traversy Media
Рет қаралды 1,4 МЛН
Callbacks in JavaScript Explained!
14:03
Code with Ania Kubów
Рет қаралды 148 М.
Async Await vs. Promises - JavaScript Tutorial for beginners
24:30
Asynchronous Vs Synchronous Programming
7:34
Web Dev Simplified
Рет қаралды 258 М.
AsyncIO, await, and async - Concurrency in Python
9:12
Socratica
Рет қаралды 67 М.