Async JavaScript & Callback Functions -- Tutorial for Beginners

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

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()
@oleksandrfomin326
@oleksandrfomin326 Жыл бұрын
Production quality is incredible as well as the content itself. Great job!
@ColorCodeio
@ColorCodeio Жыл бұрын
Thank you
@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
@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
@udaym4204
@udaym4204 9 ай бұрын
This video is worth million of dollar
@ColorCodeio
@ColorCodeio 9 ай бұрын
💰💰
@Mtoun974
@Mtoun974 7 ай бұрын
I'm glad that KZbin recommend me this episode, thanks color-code
@rameenana
@rameenana 12 күн бұрын
Your explanation was the easiest to grasp from the videos I've seen. Thanks for this, man. Appreciate your work.
@axmedaxmedov9456
@axmedaxmedov9456 Жыл бұрын
I follow you from Azerbaijan, there is no one who explains these topics as well as you
@ColorCodeio
@ColorCodeio Жыл бұрын
Hello Azerbaijan 🇦🇿
@ThanujaFernando-vu5dh
@ThanujaFernando-vu5dh 9 ай бұрын
One of the best content creators I've seen
@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%
@jitulborah_10
@jitulborah_10 Жыл бұрын
the man who cleared majority of my js doubts❣️
@ColorCodeio
@ColorCodeio Жыл бұрын
🙇‍♂️
@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!
@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.
@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!
@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
@jatilyadav4000
@jatilyadav4000 Жыл бұрын
Great Explaination. More such video should be uploaded.
@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!
@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.
@wtl912
@wtl912 Жыл бұрын
You're simply awesome. Explanations, visuals and even your water breaks. This is fantastic.
@ColorCodeio
@ColorCodeio Жыл бұрын
👍💦
@burhanshah5855
@burhanshah5855 Жыл бұрын
Thank you. Please continue this series.
@ColorCodeio
@ColorCodeio Жыл бұрын
👍🤘
@Wertasile
@Wertasile 8 ай бұрын
Great Visuals!
@antonchigurh4125
@antonchigurh4125 Жыл бұрын
You've got a gift for making the seemingly inexplicable, explicable! Subbed.
@ColorCodeio
@ColorCodeio Жыл бұрын
Thank you 🙏
@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
@judonomi
@judonomi Жыл бұрын
So happy to see you back!!!!!
@ColorCodeio
@ColorCodeio Жыл бұрын
Thanks Judo. Good to be back :)
@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.
@adamtull1305
@adamtull1305 Жыл бұрын
Love this! Helps a lot
@azamataslidinov5513
@azamataslidinov5513 11 ай бұрын
Bro finally I been having trouble with async for a while
@FarazKhan-yi3pv
@FarazKhan-yi3pv Жыл бұрын
AMAZING EXLANATION!!
@raulnardone7062
@raulnardone7062 Жыл бұрын
after watching this video I promise to watch the previous ones thank you very much 😀
@AsakuraAvan
@AsakuraAvan Жыл бұрын
I really like your teaching style. Please create more conceptual videos like this for other technologies for frontend/backend/database.
@ColorCodeio
@ColorCodeio Жыл бұрын
👍
@Moinshaikh611
@Moinshaikh611 8 ай бұрын
🎉🎉🎉 Keep going brother Your teaching is very insightful Very detailed informative Thankyou so much ❤
@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!
@giusepperusso7193
@giusepperusso7193 Жыл бұрын
Complimenti dall'Italia, spiegazione semplicemente perfetta.
@tomhardy1856
@tomhardy1856 Жыл бұрын
A much appreciated comeback :) fantastic channel
@ColorCodeio
@ColorCodeio Жыл бұрын
👍
@akshaychavan5511
@akshaychavan5511 5 ай бұрын
This channel is so incredible, yet so underrated! Love you
@ColorCodeio
@ColorCodeio 4 ай бұрын
Thanks so much
@deepeshnair
@deepeshnair Жыл бұрын
You are back!!! Thank you 🙏
@ColorCodeio
@ColorCodeio Жыл бұрын
🤘
@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!
@richardradcliffe6178
@richardradcliffe6178 Жыл бұрын
Great video, thank you so much.
@davideugene7911
@davideugene7911 Жыл бұрын
Bonjour, C'était vraiment excellent. Merci :)
@isuru_xyz
@isuru_xyz 9 ай бұрын
great teacher. keep going!
@ColorCodeio
@ColorCodeio 8 ай бұрын
Thank you!
@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
@JonnyReturns
@JonnyReturns Жыл бұрын
The way you matched the overlay with the perspective of the door in the background pleases me greatly.
@ColorCodeio
@ColorCodeio Жыл бұрын
Good eye
@martinhansen9406
@martinhansen9406 5 ай бұрын
You are honestly the best ive seen at explaining JS. ty for that
@ColorCodeio
@ColorCodeio 4 ай бұрын
Ty!
@sh9vch9nk0
@sh9vch9nk0 3 ай бұрын
Thank you for such a detailed video, it was really interesting and very helpful!) 😊💓💓
@aminaabdulkadir5130
@aminaabdulkadir5130 Жыл бұрын
Glad to see you again 🤩😍 Thank you
@ColorCodeio
@ColorCodeio Жыл бұрын
Thank you. Glad to be back.
@Danny-wu5ct
@Danny-wu5ct Жыл бұрын
You are the man! I appreciate you and your content!
@ColorCodeio
@ColorCodeio Жыл бұрын
And I appreciate you Danny!
@wissensbuff
@wissensbuff Ай бұрын
Omg Listen to that Banger at the Beginn give me shivers
@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
@reluminopraha5948
@reluminopraha5948 10 ай бұрын
Well explained.
@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!
@aballahsameh3597
@aballahsameh3597 Жыл бұрын
عظمة ❤️
@kristijanlazarev
@kristijanlazarev 10 ай бұрын
Actualy perfect video for me, on my way to the promises video now thanks !!❤
@ColorCodeio
@ColorCodeio 10 ай бұрын
Nice!
@user-mw5bm2xh9x
@user-mw5bm2xh9x 6 ай бұрын
thanks for the lesson
@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! 👏👏👏
@nouhabc194
@nouhabc194 Жыл бұрын
this is the best video explaining the asynchronous in js ,thank you so much bro ❤
@ColorCodeio
@ColorCodeio Жыл бұрын
♥️
@davidtillery6250
@davidtillery6250 29 күн бұрын
Great tutorial!
@codepearls
@codepearls 9 ай бұрын
After a long time! I have understood callback function.
@ColorCodeio
@ColorCodeio 9 ай бұрын
Nice!
@hosseinabdolmotalebi4349
@hosseinabdolmotalebi4349 15 күн бұрын
dadash video hat kheyli keyfiatesh balast va kheyli khub tozih midi , damet garm
@samcassidy2441
@samcassidy2441 3 ай бұрын
These videos are fantastic and I'm strangely hungry now
@sai1531
@sai1531 5 ай бұрын
The way you teach is absolutely wonderful! Waiting for your JavaScript Mastery course 🙂
@ColorCodeio
@ColorCodeio 4 ай бұрын
Very soon!
@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.
@kazemqanati7120
@kazemqanati7120 5 ай бұрын
دمت گرم ، چقدر خوب توضیح میدی
@Fred-my9er
@Fred-my9er Жыл бұрын
Thanks for making JavaScript a joy to learn!
@ColorCodeio
@ColorCodeio Жыл бұрын
Fantastic to hear ♥️
@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 🇩🇪
@demiancoorey2394
@demiancoorey2394 6 ай бұрын
Superb explanation
@yassiraittata3032
@yassiraittata3032 4 ай бұрын
the best explanation to this topic on the internet.
@ColorCodeio
@ColorCodeio 4 ай бұрын
♥️
@jakubfrei3757
@jakubfrei3757 Жыл бұрын
You deserve waaaaay more subs my dude, excelent content
@ColorCodeio
@ColorCodeio Жыл бұрын
👍👍
@datsmydab-minecraft-and-mo5666
@datsmydab-minecraft-and-mo5666 Жыл бұрын
So good!!!
@karlee8608
@karlee8608 Жыл бұрын
Thank you sir for the clear explanation.
@ColorCodeio
@ColorCodeio Жыл бұрын
You are welcome
@W1nDs0R
@W1nDs0R Жыл бұрын
Amazing video, thanks so much for sharing! :)
@ColorCodeio
@ColorCodeio Жыл бұрын
Thanks for watching!
@SilenceOfuniverse
@SilenceOfuniverse 3 ай бұрын
Honestly this helpful for mee❤❤❤
@AnnabelleWhite-js6rh
@AnnabelleWhite-js6rh 6 ай бұрын
This is my favorite coding channel!
@ColorCodeio
@ColorCodeio 6 ай бұрын
♥️
@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 ♥️
@mohammadlalani
@mohammadlalani 10 ай бұрын
ممنون سینا جان. ویدیوهات خیلی به من کمک کرد.
@ColorCodeio
@ColorCodeio 10 ай бұрын
👍
@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 :)
@CodeWithBehram7497
@CodeWithBehram7497 7 ай бұрын
the most entertaining video on async hats off🎉
@ColorCodeio
@ColorCodeio 4 ай бұрын
🙏
@tayseersabha6738
@tayseersabha6738 Жыл бұрын
Despite not being a beginner, I really liked the video and your teaching style! Keep going!
@ColorCodeio
@ColorCodeio Жыл бұрын
Thank you 👍
@iambrijeshtoo
@iambrijeshtoo 11 ай бұрын
Thank you!
@luci-goosey
@luci-goosey Жыл бұрын
I love the way you teach and speak
@ColorCodeio
@ColorCodeio Жыл бұрын
Thank you James
@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! 👍
@eumm11
@eumm11 Жыл бұрын
you are the best!
@HuyLe-he6je
@HuyLe-he6je 6 ай бұрын
Thanks for the explanation! Hit the subscribed with the bell
@ColorCodeio
@ColorCodeio 5 ай бұрын
Awesome, thank you!
@MotorcyclesandZen
@MotorcyclesandZen 3 ай бұрын
Great explaination. Great video.
@ColorCodeio
@ColorCodeio 3 ай бұрын
🙏
@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.
@elvispontes4165
@elvispontes4165 6 ай бұрын
I would love to see a React series like that on your channel. Thanks for sharing your knowledge !!!!!
@juanthoriqpahlev9875
@juanthoriqpahlev9875 4 ай бұрын
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
@mahmoudfarag1122
@mahmoudfarag1122 Жыл бұрын
very nice work
@dushyantyadav7740
@dushyantyadav7740 Жыл бұрын
Tomorrow is my Javascript Quiz and this playlist saved me
@ColorCodeio
@ColorCodeio Жыл бұрын
Nice. Good luck!
@albertosacco4472
@albertosacco4472 7 ай бұрын
Thanks bro, superb teaching skills 🪐
@ColorCodeio
@ColorCodeio 7 ай бұрын
Thank you!
@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
@malavipande6693
@malavipande6693 10 ай бұрын
Literally from the past 3 hours I am searching on the internet to understand the way how the weird concepts(async, promises, await) of JS works in practical. But finally I say that worth searching I came across this amazing content. Thank You man !! .-_-.
@ColorCodeio
@ColorCodeio 10 ай бұрын
You got it!
@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 .
@andresbc2344
@andresbc2344 Жыл бұрын
Excellent example. I finally got callbacks!
@ColorCodeio
@ColorCodeio Жыл бұрын
Nice!
@creed_forever
@creed_forever 26 күн бұрын
Beautiful representation
@SiRexable
@SiRexable Жыл бұрын
thanks for sharing this !!!!
@ColorCodeio
@ColorCodeio Жыл бұрын
👍
@avigarg7859
@avigarg7859 10 ай бұрын
to the browser: Loved the enthusiasm. Incredible video
@ColorCodeio
@ColorCodeio 10 ай бұрын
TO THE BROWSER!
@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
@InvestWiseCoKr
@InvestWiseCoKr 6 ай бұрын
this guy has a million-dollar-worth knack for teaching
@ColorCodeio
@ColorCodeio 5 ай бұрын
Thanks for saying that
JavaScript Promises  -- Tutorial for Beginners
37:05
ColorCode
Рет қаралды 101 М.
JavaScript Closures Tutorial (Explained in depth)
19:03
ColorCode
Рет қаралды 59 М.
GADGETS VS HACKS || Random Useful Tools For your child #hacks #gadgets
00:35
КИРПИЧ ОБ ГОЛОВУ #shorts
00:24
Паша Осадчий
Рет қаралды 6 МЛН
The World's Fastest Cleaners
00:35
MrBeast
Рет қаралды 127 МЛН
Мы играли всей семьей
00:27
Даша Боровик
Рет қаралды 2,4 МЛН
7 Benefits of First-Class Functions - JavaScript Tutorial
25:04
Async JS Crash Course - Callbacks, Promises, Async Await
24:31
Traversy Media
Рет қаралды 1,4 МЛН
Async Await vs. Promises - JavaScript Tutorial for beginners
24:30
What is THIS keyword in JavaScript? - Tutorial for beginners
26:40
Callbacks in JavaScript Explained!
14:03
Code with Ania Kubów
Рет қаралды 148 М.
AsyncIO, await, and async - Concurrency in Python
9:12
Socratica
Рет қаралды 66 М.
Fetch API - JavaScript Tutorial for beginners
30:50
ColorCode
Рет қаралды 85 М.
GADGETS VS HACKS || Random Useful Tools For your child #hacks #gadgets
00:35