5 Real Life Examples of Array Reduce in JavaScript

  Рет қаралды 9,729

dcode

dcode

Күн бұрын

Пікірлер: 32
@dcode-software
@dcode-software 2 жыл бұрын
*FULL VIDEO ON ARRAY REDUCE:* kzbin.info/www/bejne/aZ6qk617gbd1oa8 *Enrol Now - THE ULTIMATE JAVASCRIPT DOM CRASH COURSE* 👇 www.udemy.com/course/the-ultimate-javascript-dom-crash-course/?referralCode=DC343E5C8ED163F337E1
@user-shamrai
@user-shamrai 2 жыл бұрын
You have a gift for explaining things clearly. I don't even understand English very well, but I understood you completely. Thank you
@DaviddelaHarpe
@DaviddelaHarpe Жыл бұрын
dude! killer video. You're right, most reduce method tutorials focus on one scenario, adding up all the element of an array. Your video was far more comprehensive to real world scenarios. Very well explained too!
@dev_ression
@dev_ression 2 жыл бұрын
Good to meet a fellow Australian programmer bro! You've got a new sub
@dcode-software
@dcode-software 2 жыл бұрын
Welcome 😊 thank you for subscribing. Good luck with your channel!
@saman6199
@saman6199 2 жыл бұрын
I just found your channel, and as someone mentioned, good to see a nice Aussie instructor. Thanks 🙏
@srinivasaraoyp3640
@srinivasaraoyp3640 5 ай бұрын
It's very useful. I should practice it. Thank you.
@nawal7721
@nawal7721 2 жыл бұрын
how is prev[color] returning the color name but then (prev[color] || 0) + 1 is return a number. Also if I just console.log(prev[color]) it outputs numbers but i though I should output {green}. I'm well confused.
@NedumEze
@NedumEze 2 жыл бұрын
Amazing. Thank you Dom. You've got a Computer's mind! Am envious. Wish you could help me figure out a PHP challenge.
@DavidMwai-dj8up
@DavidMwai-dj8up 2 жыл бұрын
Always a great tutor: Subscription should be @1m+ for the great content you always deliver
@s2유아마에브리띵
@s2유아마에브리띵 2 жыл бұрын
I recommend this lecture. thanks a lot👍👍👍
@allhailalona
@allhailalona 8 ай бұрын
great vidoe! thank you very much!
@taofeeqomotolani2311
@taofeeqomotolani2311 2 жыл бұрын
DOM, thanks man
@marimuthur9456
@marimuthur9456 Жыл бұрын
You are really awesome bro thank you so much for your knowledge sharing keep go ahead 👌🏼👌🏼👌🏼😊😊
@parmjeetmishra2
@parmjeetmishra2 Жыл бұрын
Amazing .. Thank you
@skolotoi4588
@skolotoi4588 2 жыл бұрын
thanks, Dom!
@rysmo0
@rysmo0 Жыл бұрын
Nice one. Better used in complex methods.
@karlstenator
@karlstenator 2 жыл бұрын
At 9:35 - if I try to return either the object, or the name of the highest salary object - I get an undefined return. Could you post the solution please?
@neilgregsoil1989
@neilgregsoil1989 Жыл бұрын
GOOD SIR!
@julioarruda8182
@julioarruda8182 2 жыл бұрын
thanks again
@abubalo
@abubalo 2 жыл бұрын
Array.reduce() is like array.filter() but on steroid. You can do a lot with it.
@streamx2
@streamx2 2 жыл бұрын
I'm a little confused with the house building example. Shouldn't it be return prev.cost + material.cost?
@capslock3250
@capslock3250 Жыл бұрын
7:17 return prev[key] = value ?
@ashishchowdary9865
@ashishchowdary9865 5 ай бұрын
Because prev is an updated object and you need to return object from the callback function
@AidaHashemii
@AidaHashemii 8 ай бұрын
perfect
@devax1t
@devax1t 2 жыл бұрын
i did learn something :)
@dcode-software
@dcode-software 2 жыл бұрын
Awesome 🔥
@suelingsusu1339
@suelingsusu1339 2 жыл бұрын
👌👌👌👍👍👍👍🙏🙏🙏🙏🖖🖖🖖🖖🌹🌹🌹🌹
@ali_mov_f
@ali_mov_f 2 жыл бұрын
first
@jordanski5421
@jordanski5421 2 жыл бұрын
same
@Leron_T
@Leron_T 2 жыл бұрын
@@jordanski5421 same
@squarerootof2
@squarerootof2 2 жыл бұрын
Congrats. You'll all get a lame, dummy & cringe award to add to your collections.
Javascript Nuggets - Reduce (object example)
18:48
Coding Addict
Рет қаралды 34 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Map, Filter & Reduce EXPLAINED in JavaScript - It's EASY!
11:23
Maps vs. Objects in JavaScript - What's the Difference?
11:48
JavaScript Comparator Function | Sorting Explained!
12:21
The Code Creative
Рет қаралды 34 М.
7 MUST KNOW JavaScript Tips and Tricks
8:58
dcode
Рет қаралды 22 М.
JavaScript Array Reduce Method Practice in 5 Minutes
8:02
James Q Quick
Рет қаралды 49 М.
as const: the most underrated TypeScript feature
5:38
Matt Pocock
Рет қаралды 130 М.
Use Maps more and Objects less
5:45
Steve (Builder.io)
Рет қаралды 106 М.
12 Things Every JavaScript Developer Should Know
14:29
dcode
Рет қаралды 11 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН