Async JavaScript & Callback Functions -- Tutorial for Beginners

Поделиться
HTML-код
  • Опубликовано: 31 май 2024
  • 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

Комментарии • 363

  • @ColorCodeio
    @ColorCodeio  Год назад +35

    🎉👨🏻‍💻Episode 11: Asynchronous JavaScript, Callback Functions, and Callback Hell 😈

    • @techbro3085
      @techbro3085 Год назад +1

      Very Nice video. And glad to hear that you are asynchronously work on this series and js mystery course 😄.

    • @prjk7339
      @prjk7339 9 месяцев назад

      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 5 месяцев назад

      @@prjk7339because if he already defined the function u can do it, he just showing the flow if you just call thing1()

  • @mkdr01
    @mkdr01 15 дней назад +3

    How you don't have a million subs is beyond me. Top notch explanations.

  • @codeforbreakfast
    @codeforbreakfast 6 месяцев назад +6

    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  6 месяцев назад +1

      Thanks :) every subscriber matters to me

  • @oleksandrfomin326
    @oleksandrfomin326 Год назад +67

    Production quality is incredible as well as the content itself. Great job!

  • @hasibur.rahman
    @hasibur.rahman Год назад +13

    After 6 months of waiting. Please upload more often.

  • @prince5922
    @prince5922 Год назад +41

    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  Год назад +9

      haha awesome. Next episode in 2 weeks.

  • @jitulborah_10
    @jitulborah_10 Год назад +9

    the man who cleared majority of my js doubts❣️

  • @pedrolelis7854
    @pedrolelis7854 Год назад +28

    I want you to know that you are one of the best when it comes to teaching programming skills on RUclips. 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!

  • @LordmkKING67
    @LordmkKING67 Год назад +1

    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!

  • @rameenana
    @rameenana Месяц назад

    Your explanation was the easiest to grasp from the videos I've seen. Thanks for this, man. Appreciate your work.

  • @qpqp8542
    @qpqp8542 11 месяцев назад +3

    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!

  • @Mtoun974
    @Mtoun974 8 месяцев назад

    I'm glad that RUclips recommend me this episode, thanks color-code

  • @axmedaxmedov9456
    @axmedaxmedov9456 Год назад +2

    I follow you from Azerbaijan, there is no one who explains these topics as well as you

  • @wtl912
    @wtl912 Год назад +4

    You're simply awesome. Explanations, visuals and even your water breaks. This is fantastic.

  • @akshaychavan5511
    @akshaychavan5511 5 месяцев назад +2

    This channel is so incredible, yet so underrated! Love you

  • @AsakuraAvan
    @AsakuraAvan Год назад +9

    I really like your teaching style. Please create more conceptual videos like this for other technologies for frontend/backend/database.

  • @aylanelson1012
    @aylanelson1012 Год назад +2

    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!

  • @antonchigurh4125
    @antonchigurh4125 Год назад +5

    You've got a gift for making the seemingly inexplicable, explicable! Subbed.

  • @ThanujaFernando-vu5dh
    @ThanujaFernando-vu5dh 9 месяцев назад

    One of the best content creators I've seen

  • @daniel7007
    @daniel7007 Год назад +2

    Awesome🔥🔥🔥 Really looking forward for TypeScript

  • @JonnyReturns
    @JonnyReturns Год назад +1

    The way you matched the overlay with the perspective of the door in the background pleases me greatly.

  • @martinhansen9406
    @martinhansen9406 5 месяцев назад +2

    You are honestly the best ive seen at explaining JS. ty for that

  • @meryemk.4884
    @meryemk.4884 9 месяцев назад +1

    You're one of the best at teaching and explaining code!! Truly complex subjects explained to easily. Very glad I found your channel

  • @genesipes8532
    @genesipes8532 Год назад +6

    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  Год назад +2

      You and me both buddy. Nerds over here 🤘Love it and thanks for the support.

  • @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.

  • @Oliver_twist00
    @Oliver_twist00 11 месяцев назад +1

    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!

  • @harshalnath4853
    @harshalnath4853 11 месяцев назад +2

    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

  • @VerySoftTea
    @VerySoftTea Год назад +2

    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!

  • @richardmartyns7978
    @richardmartyns7978 10 месяцев назад +1

    Man u are a legend, I just found out your channel on RUclips and I love the way you are simplifying JavaScript.

  • @mickeymacke1780
    @mickeymacke1780 Год назад +1

    Yea this channel is bound to blow up, you are really good at this. Thank you for such engaging and informative videos‼

  • @jatilyadav4000
    @jatilyadav4000 Год назад +1

    Great Explaination. More such video should be uploaded.

  • @judonomi
    @judonomi Год назад +1

    So happy to see you back!!!!!

  • @burhanshah5855
    @burhanshah5855 Год назад +1

    Thank you. Please continue this series.

  • @tigranharutyunyan7674
    @tigranharutyunyan7674 Год назад +1

    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❤

  • @ivo_sa
    @ivo_sa 3 месяца назад +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  3 месяца назад +1

      Hello Germany 🇩🇪

  • @tomhardy1856
    @tomhardy1856 Год назад +1

    A much appreciated comeback :) fantastic channel

  • @davidtillery6250
    @davidtillery6250 Месяц назад

    Great tutorial!

  • @MusicOnWorldOff-kk2bx
    @MusicOnWorldOff-kk2bx 8 месяцев назад +2

    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.

  • @demiancoorey2394
    @demiancoorey2394 7 месяцев назад

    Superb explanation

  • @nouhabc194
    @nouhabc194 Год назад +1

    this is the best video explaining the asynchronous in js ,thank you so much bro ❤

  • @reluminopraha5948
    @reluminopraha5948 10 месяцев назад +1

    Well explained.

  • @user-mw5bm2xh9x
    @user-mw5bm2xh9x 7 месяцев назад +1

    thanks for the lesson

  • @sai1531
    @sai1531 5 месяцев назад +1

    The way you teach is absolutely wonderful! Waiting for your JavaScript Mastery course 🙂

  • @karlee8608
    @karlee8608 Год назад +1

    Thank you sir for the clear explanation.

  • @adamtull1305
    @adamtull1305 Год назад

    Love this! Helps a lot

  • @giusepperusso7193
    @giusepperusso7193 Год назад

    Complimenti dall'Italia, spiegazione semplicemente perfetta.

  • @deepeshnair
    @deepeshnair Год назад +1

    You are back!!! Thank you 🙏

  • @Moinshaikh611
    @Moinshaikh611 9 месяцев назад +1

    🎉🎉🎉
    Keep going brother
    Your teaching is very insightful
    Very detailed informative
    Thankyou so much ❤

  • @kristijanlazarev
    @kristijanlazarev 11 месяцев назад +1

    Actualy perfect video for me, on my way to the promises video now thanks !!❤

  • @richardradcliffe6178
    @richardradcliffe6178 Год назад +1

    Great video, thank you so much.

  • @codepearls
    @codepearls 10 месяцев назад +1

    After a long time! I have understood callback function.

  • @aminaabdulkadir5130
    @aminaabdulkadir5130 Год назад +1

    Glad to see you again 🤩😍 Thank you

  • @MotorcyclesandZen
    @MotorcyclesandZen 4 месяца назад +1

    Great explaination. Great video.

  • @Gaagaagoogoo677
    @Gaagaagoogoo677 Год назад +1

    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.

  • @Danny-wu5ct
    @Danny-wu5ct Год назад +1

    You are the man!
    I appreciate you and your content!

  • @UndercoverMCResspect
    @UndercoverMCResspect Год назад +2

    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  Год назад +1

      That's awesome, so good to hear! 👍

  • @daretobedangerous6552
    @daretobedangerous6552 10 месяцев назад +1

    eventlistener is synchronous by it self, it's the logic inside the call back that may make it asynchronous. Apart from, that brilliant!

  • @udaym4204
    @udaym4204 10 месяцев назад +2

    This video is worth million of dollar

  • @tayseersabha6738
    @tayseersabha6738 Год назад +1

    Despite not being a beginner, I really liked the video and your teaching style! Keep going!

  • @JohnWick-hp8wn
    @JohnWick-hp8wn 3 месяца назад +1

    Very beautifully explained. blown away with the clean delivery and how much effort & love you put into it

  • @kazemqanati7120
    @kazemqanati7120 6 месяцев назад

    دمت گرم ، چقدر خوب توضیح میدی

  • @Sat-7
    @Sat-7 Год назад +1

    Well well well, As always the first video pops out right after opening RUclips 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....💌🇮🇳

  • @Walid-Sahab
    @Walid-Sahab Год назад +1

    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.

  • @wissensbuff
    @wissensbuff Месяц назад

    Omg Listen to that Banger at the Beginn give me shivers

  • @mohammadlalani
    @mohammadlalani 11 месяцев назад +1

    ممنون سینا جان. ویدیوهات خیلی به من کمک کرد.

  • @creed_forever
    @creed_forever Месяц назад

    Beautiful representation

  • @FarazKhan-yi3pv
    @FarazKhan-yi3pv Год назад

    AMAZING EXLANATION!!

  • @yassiraittata3032
    @yassiraittata3032 5 месяцев назад +1

    the best explanation to this topic on the internet.

  • @jakubfrei3757
    @jakubfrei3757 Год назад +1

    You deserve waaaaay more subs my dude, excelent content

  • @W1nDs0R
    @W1nDs0R Год назад +2

    Amazing video, thanks so much for sharing! :)

  • @AnnabelleWhite-js6rh
    @AnnabelleWhite-js6rh 7 месяцев назад +1

    This is my favorite coding channel!

  • @CodeWithBehram7497
    @CodeWithBehram7497 7 месяцев назад +1

    the most entertaining video on async hats off🎉

  • @Wertasile
    @Wertasile 9 месяцев назад

    Great Visuals!

  • @malavipande6693
    @malavipande6693 11 месяцев назад +1

    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 !! .-_-.

  • @SilenceOfuniverse
    @SilenceOfuniverse 3 месяца назад

    Honestly this helpful for mee❤❤❤

  • @udaym4204
    @udaym4204 10 месяцев назад +2

    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  10 месяцев назад +1

      Thank you, I will

    • @udaym4204
      @udaym4204 2 месяца назад

      @@ColorCodeio brother please start making video in depth how js work behind the scence .

  • @juanthoriqpahlev9875
    @juanthoriqpahlev9875 5 месяцев назад +1

    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  5 месяцев назад +1

      Functional programming coming soon

  • @njorogekamau3820
    @njorogekamau3820 4 месяца назад +1

    The clean production quality seems to match your clear thinking which is apparent in your explanations.

  • @mahmoudfarag1122
    @mahmoudfarag1122 Год назад

    very nice work

  • @luci-goosey
    @luci-goosey Год назад +1

    I love the way you teach and speak

  • @davideugene7911
    @davideugene7911 Год назад +1

    Bonjour,
    C'était vraiment excellent. Merci :)

  • @isuru_xyz
    @isuru_xyz 9 месяцев назад +1

    great teacher. keep going!

  • @iambrijeshtoo
    @iambrijeshtoo Год назад

    Thank you!

  • @Fred-my9er
    @Fred-my9er Год назад

    Thanks for making JavaScript a joy to learn!

  • @sh9vch9nk0
    @sh9vch9nk0 4 месяца назад

    Thank you for such a detailed video, it was really interesting and very helpful!) 😊💓💓

  • @mrSargi7
    @mrSargi7 Год назад +1

    So glad to see you back! Will there be any typescript videos in the future ?

    • @ColorCodeio
      @ColorCodeio  Год назад +3

      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!

  • @JeatBunkie
    @JeatBunkie Год назад +3

    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  Год назад +2

      Haha nice! First person to notice Sade.

  • @hosseinabdolmotalebi4349
    @hosseinabdolmotalebi4349 Месяц назад

    dadash video hat kheyli keyfiatesh balast va kheyli khub tozih midi , damet garm

  • @HuyLe-he6je
    @HuyLe-he6je 6 месяцев назад +1

    Thanks for the explanation! Hit the subscribed with the bell

  • @dushyantyadav7740
    @dushyantyadav7740 Год назад +1

    Tomorrow is my Javascript Quiz and this playlist saved me

  • @The.abiola
    @The.abiola 2 месяца назад

    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! 👏👏👏

  • @hamidrasyid1560
    @hamidrasyid1560 Год назад +1

    wow, I'm watching here while I'm ordering pizza and not waiting the pizza because I'm doing asynchronous function watch your video.. Now, I'm understand.. great explanation and love your content from beginning of this series..

  • @azamataslidinov5513
    @azamataslidinov5513 Год назад +1

    Bro finally I been having trouble with async for a while

  • @andresbc2344
    @andresbc2344 Год назад +1

    Excellent example. I finally got callbacks!

  • @avigarg7859
    @avigarg7859 11 месяцев назад +1

    to the browser: Loved the enthusiasm. Incredible video

  • @datsmydab-minecraft-and-mo5666

    So good!!!

  • @InvestWiseCoKr
    @InvestWiseCoKr 6 месяцев назад +1

    this guy has a million-dollar-worth knack for teaching

    • @ColorCodeio
      @ColorCodeio  6 месяцев назад

      Thanks for saying that

  • @raulnardone7062
    @raulnardone7062 Год назад

    after watching this video I promise to watch the previous ones
    thank you very much 😀

  • @kooyaw4445
    @kooyaw4445 4 месяца назад +1

    Awesome brother

  • @elyoaprogrammer
    @elyoaprogrammer Год назад +1

    Excellent video, Excellent content, Excellent series overall, I would like a video about event loop detailed. Thanks a lot for this contents.