Async JavaScript & Callback Functions -- Tutorial for Beginners

Async JavaScript & Callback Functions -- Tutorial for Beginners

ColorCode

1 год назад

90,274 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@ColorCodeio
@ColorCodeio - 06.09.2022 23:10

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

Ответить
@mohamedaslam1910
@mohamedaslam1910 - 22.11.2023 17:01

Bro what?? 62k subs for this guy, I was watching the video with thought that this some million subs channel bro... THE QUALITY

Ответить
@mlplnz
@mlplnz - 17.11.2023 04:39

Too long to explain. Disliked.

Ответить
@HuyLe-he6je
@HuyLe-he6je - 13.11.2023 15:26

Thanks for the explanation! Hit the subscribed with the bell <3 love your content.

Ответить
@InvestWiseCoKr
@InvestWiseCoKr - 12.11.2023 18:16

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

Ответить
@AlphAndroiD
@AlphAndroiD - 01.11.2023 11:58

crazy good stuff :))

Ответить
@user-mw5bm2xh9x
@user-mw5bm2xh9x - 31.10.2023 15:17

thanks for the lesson

Ответить
@kwikbit
@kwikbit - 28.10.2023 13:15

thx ... that reminds me, I need to go do some laundry 😉

Ответить
@AnnabelleWhite-js6rh
@AnnabelleWhite-js6rh - 27.10.2023 19:00

This is my favorite coding channel!

Ответить
@elvispontes4165
@elvispontes4165 - 22.10.2023 18:14

I would love to see a React series like that on your channel. Thanks for sharing your knowledge !!!!!

Ответить
@demiancoorey2394
@demiancoorey2394 - 21.10.2023 14:16

Superb explanation

Ответить
@CodeWithBehram7497
@CodeWithBehram7497 - 15.10.2023 08:12

the most entertaining video on async hats off🎉

Ответить
@rmrtamiltechnology
@rmrtamiltechnology - 10.10.2023 10:19

How can I purchase javascript mastery course from color code.

Ответить
@MusicOnWorldOff-kk2bx
@MusicOnWorldOff-kk2bx - 25.09.2023 15:14

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.

Ответить
@WaliaIbex
@WaliaIbex - 22.09.2023 21:25

You are the BEST

Ответить
@swedishpsychopath8795
@swedishpsychopath8795 - 19.09.2023 09:36

Am I getting this correct? When you use asynchronous calls your method calls are put in a message queue to be handled by the event loop sequentially?? So if you make wonderful "parallel" code the execution of your methods is done sequentially as if they were synchronous calls... ? So if your methods you wanted to be handled in parallell are just put into another sequential execution queue ... what is the point of making asynchronous code?

Ответить
@albertosacco4472
@albertosacco4472 - 17.09.2023 15:32

Thanks bro, superb teaching skills 🪐

Ответить
@bowser_inthe_darkworld2
@bowser_inthe_darkworld2 - 14.09.2023 13:37

great

Ответить
@amansingh9869
@amansingh9869 - 11.09.2023 15:31

At the time of 6;12 you are wrong Eat pizza consoling because of pizza variable in line number 4 attached to the window object if you will console.log pizza line 1 outsite of function then it will return undefined let me give some example

let pizza;
function pizzaorder(){
pizzas = "amanpizza";
}
pizzaorder();
console.log(pizzas,pizza);
//amanpizza undefined

Ответить
@mocococo2877
@mocococo2877 - 09.09.2023 19:12

Hello, I am Qoli and you are no longer friend of mine. :)

Hello, THANK YOU and greetings from Bulgaria.
Please take a look at what puzzles me, in your orderPizza(callback) you use the callback directly without wrapping it into a function.
In your example of callback hell you wrapped all functions in arrow functions.
My question is why ?? Is there any specific reason ??
Thank you.

Ответить
@itsnobledean9450
@itsnobledean9450 - 09.09.2023 02:26

I signed up for the Javascript Mastery course just off of this video alone. I feel I can learn a lot from how he teaches. Hopefully the course isn't priced ridiculously.

Ответить
@qwerty_codes1548
@qwerty_codes1548 - 06.09.2023 21:27

Assalomu alaykum Bro Your Video was very usezful for me please make more videos like that 👍👍

Ответить
@romanbaranov1984
@romanbaranov1984 - 04.09.2023 21:45

So, did you called Qoli after all?)

Ответить
@tempo0883
@tempo0883 - 30.08.2023 15:35

love u

Ответить
@pranavkumar9175
@pranavkumar9175 - 27.08.2023 17:48

please don't use music in video because most of us watch the video in 1.5x or more speed which makes music very annoying.
apart from this, this video is so nice thanks.

Ответить
@Wertasile
@Wertasile - 23.08.2023 11:37

Great Visuals!

Ответить
@timepassgames101
@timepassgames101 - 23.08.2023 09:33

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

Ответить
@timepassgames101
@timepassgames101 - 23.08.2023 09:33

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

Ответить
@user-qe6km5px4v
@user-qe6km5px4v - 22.08.2023 17:28

hey Qoli can you please make a video on a series of JavaScript interview questions and most likely on execution context and memory allocation

Ответить
@meryemk.4884
@meryemk.4884 - 21.08.2023 11:45

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

Ответить
@isuru_xyz
@isuru_xyz - 16.08.2023 16:08

great teacher. keep going!

Ответить
@MrPflanzenLp
@MrPflanzenLp - 11.08.2023 15:57

Dislike Instead of learning to code i got up and made pizza because you made me hungry.

Ответить
@ThanujaFernando-vu5dh
@ThanujaFernando-vu5dh - 10.08.2023 14:36

One of the best content creators I've seen <3 Good luck and we need more contents like this

Ответить
@TrulySlobz
@TrulySlobz - 28.07.2023 20:03

I came here because one of the "easy" leetcode problems had promise and await and async in it, I had no clue what any of those things were as I just finished the freecodecamp javascript section. I dont really know where to go after that.

Ответить
@lalala-sy3gr
@lalala-sy3gr - 27.07.2023 04:20

Waiting for your dsa series sir 🤓

Ответить
@lalala-sy3gr
@lalala-sy3gr - 27.07.2023 04:16

Thanks for this gem sir ❤

Please upload new videos 🙏🏻

Ответить
@Slunkey
@Slunkey - 26.07.2023 13:48

Why do you put 'pizza' as a parameter for the callback() and pizzaReady() functions?

Ответить
@kainarilyasov4644
@kainarilyasov4644 - 25.07.2023 19:47

when my pizza is here, f**k Qoli ) I want to eat my pizza, I don't wanna hear about Qoli

Ответить
@daretobedangerous6552
@daretobedangerous6552 - 24.07.2023 22:34

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

Ответить
@mykolapetrovych3660
@mykolapetrovych3660 - 24.07.2023 10:12

The author of this video completely missed the meaning of synchronous and asynchronous. "Synchronous" means happening at the same time. So if the second function doesn't wait for the first function to complete that means it starts executing while the first function is still running. That is they are running at the same time - synchronously.
On the other hand, asynchronous is ordered execution. So the JavaScript is executed asynchronously by default - line by line. One line finished - the next starts executing. Argue if you can.

Ответить
@codepearl
@codepearl - 22.07.2023 15:05

After a long time! I have understood callback function.

Ответить
@kosalaprasetya8770
@kosalaprasetya8770 - 22.07.2023 13:18

I watched this video 3 times until I got an understanding what does callback mean in Asynchronous, then I try it by myself with callbacks then the code returning an error. Now I see why they put 'hell' after the callback word.

Ответить
@udaym4204
@udaym4204 - 22.07.2023 12:48

This video is worth million of dollar

Ответить
@udaym4204
@udaym4204 - 22.07.2023 12:26

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

Ответить
@user-ox1nj5hg9d
@user-ox1nj5hg9d - 18.07.2023 04:02

Here's where I'm a little confused and I probably sound slow but please bare with me on this... what if we replaced callback with pizzaReady would the results still be the same? I'm finding hard to understand what callback(pizza) is doing since we're already assigning pizza with an emoji and waiting 2s for that to take effect before passing it down as a vriable for pizzaReady( ). If we're passing pizzaReady as a callback function, how is it that we can change the default function name to anything we want and still achieve the same output?

Ответить
@reluminopraha5948
@reluminopraha5948 - 15.07.2023 15:49

Well explained.

Ответить
@josemarin359
@josemarin359 - 12.07.2023 17:53

Best solution to manage async and promises is to use js-awe library

Ответить
@user-fu6oi9hk8k
@user-fu6oi9hk8k - 11.07.2023 14:44

can you explain callback hell clearly and why did we went to promises and async,await

Ответить