Тёмный

Practical Destructuring with Promises and Array Methods 

Steve Griffith - Prof3ssorSt3v3
Подписаться 102 тыс.
Просмотров 6 тыс.
50% 1

This tutorial explains how you can use array and object destructuring in conjunction with Array methods and Promise-based methods like fetch.
Note: The rest operator must be the last argument when destructuring. The code sample linked to below has the correct syntax for doing this.
Code from video: gist.github.co...

Опубликовано:

 

21 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 27   
@jaganmohan9013
@jaganmohan9013 3 года назад
This channel deserves more subscribers for its quality content
@RHILL-hb1hr
@RHILL-hb1hr Год назад
Your videos are so easy to understand. Thank you so much!
@Self-taughtCoder
@Self-taughtCoder 3 года назад
Oh my, I found a home where JS is understood. Waiting for that video that will touch on JEST, hoping that it is being thought of. This video has made me go back and refactor my code. Thanks a lot.
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 года назад
You can make requests for tutorials in the comments here - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-LCezax2uN3c.html
@Self-taughtCoder
@Self-taughtCoder 3 года назад
@@SteveGriffith-Prof3ssorSt3v3 Thanks, will do.
@pamphilemkp5841
@pamphilemkp5841 Год назад
Thank you so much our senior dev , this video worth my time ❤
@sinsin7843
@sinsin7843 3 года назад
really like your tutorial !! even non-native English speaker still can understand , thank you~
@krish_unni
@krish_unni 3 года назад
Great sir. I m gonna use this. Thanks for the tutorial. Lots to learn from you.
@allezzthepunk
@allezzthepunk 3 года назад
Actually, I am going to use them now!
@haroldtitcomb
@haroldtitcomb Год назад
Man's a genius....simply put
@cloudpuncher4615
@cloudpuncher4615 3 года назад
Thanks heaps for the great video, would it be possible to fold values from Promises using destructuring? I trying to compose multiple sync and async functions while keeping the runtime under 50ms (CF worker) but the new Promise creation with .then is killing performance.
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 года назад
It has to do with how JS deals with the event loop and tasks and microtasks. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-cCOL7MC4Pl0.html - this should help you visualize it.
@mickwhyte4204
@mickwhyte4204 3 года назад
Great tutorial! Thanks.
@2ru2pacFan
@2ru2pacFan Год назад
Thank you Professor! :)
@johmcg64
@johmcg64 3 года назад
Thank you. When using destructuring, if I change the order of name and partner, will it still work?
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 года назад
For object destructuring you can use any order for the property names. For array destructuring it has to be in the numerical order.
@johmcg64
@johmcg64 3 года назад
@@SteveGriffith-Prof3ssorSt3v3 Tank you. That is magnificent.
@dodokwak
@dodokwak 3 года назад
Thank you.
@hammadahmad5383
@hammadahmad5383 3 года назад
Hi Sir 😊 Thanks for this tutorial video. I have a request, please make a video teaching how to make an image slider using Javascript with autoplay 🙂. And one more thing, is there any css property for smoothing the text on the webpage becuase the text on my website is very distorted on the edges and it doesn't look nice. Thanks 😊
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 года назад
I made this tutorial a few years ago on building a carrousel / image slider - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-mEQl4mEex34.html and this about touch events ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ga_SLzsUdTY.html Please add any tutorial requests in the comments here - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-LCezax2uN3c.html
@devT44
@devT44 Год назад
At 7:55 what u have said is wrong, sir. Rest element must be last in a destructuring pattern.
@mubashirwaheed474
@mubashirwaheed474 3 года назад
Thanks
@micahelm3222
@micahelm3222 2 года назад
great video!
@yadusolparterre
@yadusolparterre 3 года назад
Why would you use a map() method without returning anything though... 🙄
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 года назад
Because it was the input into the map function that was being discussed, not what the map method does or returns.
@mohamedyoussef8835
@mohamedyoussef8835 3 года назад
Excellent +++++++++++++++++
Далее
What is a JavaScript Reducer Function???
12:21
Просмотров 6 тыс.
Immutability in JavaScript
15:13
Просмотров 7 тыс.
ТЕСЛА КИБЕРТРАК x WYLSACOM / РАЗГОН
1:40:47
I tricked MrBeast into giving me his channel
00:58
Просмотров 3,5 млн
Being Competent With Coding Is More Fun
11:13
Просмотров 98 тыс.
This Algorithm is 1,606,240% FASTER
13:31
Просмотров 844 тыс.
Why You Shouldn't Nest Your Code
8:30
Просмотров 2,7 млн
8 Must Know JavaScript Array Methods
10:05
Просмотров 1 млн
Understanding the Keyword THIS in JavaScript
13:59
Просмотров 9 тыс.
Deep Dive into Array from method
22:05
Просмотров 2,8 тыс.
ТЕСЛА КИБЕРТРАК x WYLSACOM / РАЗГОН
1:40:47