JavaScript Promises ‍in 1 Minute #shorts

JavaScript Promises ‍in 1 Minute #shorts

ColorCode

1 год назад

301,096 Просмотров

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


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

Afan Khan
Afan Khan - 28.09.2023 16:21

No way, you managed to explain this so quickly with such a good explanation. You truly understood the concept.

Ответить
Adigun Daniel
Adigun Daniel - 22.09.2023 01:16

Dude 🔥 😂 just bought me as a subscriber bcuz I understood thus immediately 😅

Ответить
zombie223
zombie223 - 17.07.2023 17:21

thanks man good explaning

Ответить
BluetonicUK28
BluetonicUK28 - 16.07.2023 21:03

uggh what a superb explanation! Took me months in my uni days to get this

Ответить
Cute animals
Cute animals - 15.07.2023 10:03

You are exactly looking like a Rishi Sunak sir

Ответить
Anthony
Anthony - 01.07.2023 02:16

Damn, you are good…

Ответить
Csanád Temesvári
Csanád Temesvári - 30.06.2023 10:23

JS and TS is really a stockholm-syndrome kind of vibe huh

Ответить
DrunkenKas
DrunkenKas - 30.06.2023 04:59

Careful, because of javascript's single threaded nature, any hard waits will still block the thread. For example, try putting a sleep() call in the promise

Ответить
FraWo
FraWo - 29.06.2023 01:16

Isn't async and await doing the same stuff?

Ответить
Aniruddha Mukherjee
Aniruddha Mukherjee - 26.06.2023 22:13

For straight 2 seconds I thought this was Rishi Sunak.

Ответить
Pavan kumar D
Pavan kumar D - 22.06.2023 18:22

Loved this. Pls make more. Better to watch this than all the crap on yt

Ответить
Omran Rad
Omran Rad - 20.06.2023 01:01

Nice 👍

Ответить
Johnny
Johnny - 18.06.2023 22:26

async await?

Ответить
Code for Mars
Code for Mars - 18.06.2023 19:43

you could have just return weather from getWeather it will also be a promise , no need to wrap a promise inside a promise

Ответить
Wet Pants
Wet Pants - 16.06.2023 23:24

async await >

Ответить
Emerson Tavera
Emerson Tavera - 15.06.2023 03:04

hahahaha thanks, I'm learning springboot, but I was trying to learn some JS to build very basic UI, I was checking this very specific subject with some some examples but didn't quite made sense, but your example gave me a good starting point, thanks xd

Ответить
hassan kassi
hassan kassi - 14.06.2023 21:09

Well explained👍

Ответить
MONQ
MONQ - 11.06.2023 08:49

that take for resolve reject as then and catch, i never thought of that when learning promise since they all use resolve and reject. could've understood it faster if they did it as then and catch in teaching materials/videos/documentations

Ответить
UNKNOWN
UNKNOWN - 08.06.2023 18:21

Nah I just do
return true

Ответить
Dhruv Gupta
Dhruv Gupta - 06.06.2023 21:49

sounds like python but worse...
why tf do people even use it

Ответить
Anup Khismatrao
Anup Khismatrao - 05.06.2023 23:12

Ответить
Fadi AL SWOEDAN
Fadi AL SWOEDAN - 28.04.2023 08:32

Nice

Ответить
Alireza Abbaszade
Alireza Abbaszade - 21.04.2023 21:06

As an Iranian, I am proud of you, Sina.

Ответить
McTavish221
McTavish221 - 21.04.2023 11:42

Its just so much cleaner to avoid all this, make the function async and use the await keyword

Ответить
dat pham
dat pham - 15.04.2023 23:22

omg i have learned this sh*t for 3 days and now I understand it in 1 min

Ответить
oldave6
oldave6 - 29.03.2023 07:38

Great explanation.... But just make the code actually fits the screen next video.

Ответить
David Husted
David Husted - 28.03.2023 17:33

You 're amazing that you can give an explanation of promises in just 1 minute🙏🙏🙏, thanks Sir

Ответить
Umesh Chaudhary
Umesh Chaudhary - 22.03.2023 09:27

now do with async await

Ответить
Musa
Musa - 15.03.2023 00:23

I.... understand 🙃
finally
ffs

Ответить
Туран 141
Туран 141 - 12.03.2023 20:08

but we could do this with async await

Ответить
Туран 141
Туран 141 - 12.03.2023 20:05

what is the theme?

Ответить
Priyansh Sharma
Priyansh Sharma - 05.03.2023 09:43

Async Await left the chat.
.
.
But really nice explanation in this as well as the full video.
Give the link in comment and pin it

Ответить
GmanGavin();
GmanGavin(); - 25.02.2023 15:51

I swear JavaScript too my looks like {([<>])} the end of a function is mostly like )};

Then over other languages will end like
}

Ответить
Arakwar
Arakwar - 24.02.2023 16:45

Calling resolve and reject as then and catch feels like it would make learning about promises a lot easier. And I say this as I work on the monster I created some time ago that is a recursive async and promises stack used to fetch info from different apis and merge them together to start new requests, with some apis being limited to 10 records at a time while I need them all (about 40)…

Ответить
Subham Raj
Subham Raj - 23.02.2023 19:28

Better use async await :)

Ответить
Lexington Jackson
Lexington Jackson - 18.02.2023 16:28

who wouldnt want to see "jim sarbh" teaching javascript

Ответить
Tummala Sudhir
Tummala Sudhir - 16.02.2023 22:52

Great explanation... Link for full episode please

Ответить
maelstrom57
maelstrom57 - 16.02.2023 16:23

I hate the explanation that something is wrapped in a promise because it takes time. Iterating to 1e12 takes time yet you're not going to put the loop in a promise.

Ответить
Alex Guedea
Alex Guedea - 16.02.2023 08:14

Promises. Uh huh

Ответить
yassine safraoui
yassine safraoui - 16.02.2023 06:25

Disadvantage of promises: callback hell

Ответить
Alexander Ten
Alexander Ten - 15.02.2023 09:56

Try to solve Hanoi Towers with promises. Every next promise is more clear to the end position

Ответить
Sashikant Biswal
Sashikant Biswal - 14.02.2023 19:56

Use async await

Ответить
James Brindle
James Brindle - 14.02.2023 12:54

We need a better client side script language. Javascript has been bastardised beyond belief to the point its almost unusable now with writing endless closures around things.

Ответить
James C Xu
James C Xu - 12.02.2023 16:24

subscribed. Although I am a Java developer

Ответить
Bikrant Jajware
Bikrant Jajware - 11.02.2023 20:32

This is misleading, resolve and reject are not synonymous to then and catch.

Ответить
Elie Francois
Elie Francois - 11.02.2023 03:44

Please do RxJs

Ответить
Snehasis Sahoo
Snehasis Sahoo - 10.02.2023 22:05

Think we can just use async await to get the api response 🤔.. not sure though

Ответить
exclusivelynyc
exclusivelynyc - 09.02.2023 05:08

Please tell me how I get those colors in my vscode

Ответить
Paradoxical Egg
Paradoxical Egg - 08.02.2023 04:36

JS is weird

Ответить
7procop7
7procop7 - 06.02.2023 13:05

I’ve been struggling with async for days, but when he said that a Promise takes two parameters, “then” and “catch”, but that they’re called “resolve” and “reject” I was like OH SHIT! Now it makes so much more sense

Ответить