Array Reduce - Javascript In Depth

  Рет қаралды 2,254

Tech with Nader

Tech with Nader

Күн бұрын

Learn about how we can reduce over arrays in Javascript. We go over some common issues when using reduce as well as several examples to help cement all these ideas.
This is part of a series where we go over Javascript in depth to learn programming concepts as well as web development: • Javascript In Depth
Chapters:
00:00 Introduction
00:33 Array Reduce Concepts
10:14 Array Reduce Documentation
12:50 Array Reduce Code Example
22:06 Array Reduce Memory Representation
24:12 Array Reduce Without Return
32:05 Reduce String Example
38:48 Reduce Array Example
45:00 Next Steps
📦 Github Repository with the notes and exercise code+solutions: github.com/Nooder/javascript-...
💬 Come join us on Discord to chat with a like-minded community about tech and learning: / discord
🏅Support the channel and content through Super Thanks, Channel Memberships, or on Patreon: / techwithnader

Пікірлер: 34
@Pharizer
@Pharizer Жыл бұрын
This channel is a goldmine! You def deserve more views
@TechWithNader
@TechWithNader Жыл бұрын
Thank you very much! I’m just glad to be able to help people with these topics 😊 Can’t wait for the upcoming videos!
@luisescobar5012
@luisescobar5012 9 ай бұрын
I agree this channel is a gold mine !
@KRAKENBACK..
@KRAKENBACK.. Жыл бұрын
23 videos in never lookin back! Thank you Nader
@TechWithNader
@TechWithNader Жыл бұрын
Just powering through! Nice work - I can't wait to see how you do on the project 🚀
@OXIDE777-is6gs
@OXIDE777-is6gs Жыл бұрын
I totaly agree, you deffinetely deserve more views, I already shared your content to my class, hope they will hang around.
@404React_Media
@404React_Media Жыл бұрын
You one of the best when it comes to breaking down JS. Keep up the good work!
@TechWithNader
@TechWithNader Жыл бұрын
Thanks a lot, that means a lot 😊 Will keep them coming, haha! 🥳
@RajeaBilal
@RajeaBilal Жыл бұрын
The best video on array.reduce... ever!
@TechWithNader
@TechWithNader Жыл бұрын
Thanks Rajea! I’m so glad you find it helpful haha, since this is such a confusing but important topic (in every language)! 😊
@septembersaii2364
@septembersaii2364 Жыл бұрын
Easy to understand explanation, super excited to keep learning more thank you for teaching !
@TechWithNader
@TechWithNader Жыл бұрын
You're very welcome! Glad you're finding these helpful and (hopefully) fun, haha! 😃
@MauFerrusca
@MauFerrusca Жыл бұрын
My absolute thanks. Your diagrams, explanations and thought process has helped me immensly. Thank you so much, Nader.
@nanlunglongtau2076
@nanlunglongtau2076 5 ай бұрын
The slides were really helpful here
@dharsanr6504
@dharsanr6504 Жыл бұрын
This channel is a gem, thank you soo much for creating such an amazing playlist to learn js in depth
@kepdani
@kepdani Жыл бұрын
really good explanations, thanks
@nguyennguyen-nm3oq
@nguyennguyen-nm3oq Жыл бұрын
Could you mention a quick blurb on how these tools are applied with industry examples? It would help contextualize the raw code and relate the value of the lesson. Thank for sharing your knowledge Sir.
@TechWithNader
@TechWithNader Жыл бұрын
Good point! I designed most of these exercises to simulate similar tasks you might see in industry. There are so many possible fields you could apply these to so I tried to keep it applicable but generic and interesting. 🤓 In some of the later examples as we learn more I do sprinkle in some thing like web related or interview question related where possible 😊 I would love to make a full series walking through using these building blocks start to finish to build an actual product that’s full stack though. I think I can really bring in the most industry comparison there 🤞🏽
@angrysnowballman
@angrysnowballman Жыл бұрын
very informative, great work! Keep going. I am likes every your video
@TechWithNader
@TechWithNader Жыл бұрын
Thanks, that’s very kind of you 😊
@senniagordinskaya4051
@senniagordinskaya4051 Ай бұрын
Thank you!
@user-wl2em8qm3k
@user-wl2em8qm3k Ай бұрын
Thanks master
@AnkitPatel04
@AnkitPatel04 Ай бұрын
I think finding small and large numbers we don't neet to pass initial value because accumulator will be array [0] and currentvalue array[1] so we can find wich one is small or large by comparing and then return accumulator or currentValue
@kimborlongan9045
@kimborlongan9045 Жыл бұрын
How do you higlight several lines and instantly comment out all of it. Mine gets erased and replaced by // Love ur vids btw. Keep it up!
@TechWithNader
@TechWithNader Жыл бұрын
Thanks! For commenting, if you highlight the code and do cmd+/ on mac or ctrl+/ on pc it should work 😊
@brwka
@brwka 10 ай бұрын
where can i find MORE this type of exercises to increase my understanding of method. I have downloaded your repository but i have completed all exercise ;p
@TechWithNader
@TechWithNader 10 ай бұрын
Haha, I would love to create more of these sometime! I'd encourage you to try using map/filter/reduce more in your code your write for all your other tasks/problems and see if you can solve it with them instead. That's always good practice and you'll see it applies to many more things and places than you'd have guessed 😊
@JoeMilneEnglish
@JoeMilneEnglish Жыл бұрын
S*#t is getting real here! Haha. Tough! Onto the exercises.
@TechWithNader
@TechWithNader Жыл бұрын
Tough love, haha!
@chabaneau
@chabaneau Жыл бұрын
let gitHubExerciseCompleted = false; let understood = false; let otherSourcesChecked = false; let naderVideoChecked = false; if (otherSourcesChecked === true){ understood = false; gitHubExerciseCompleted = false; } if( naderVideoChecked === true){ understood = true; gitHubExerciseCompleted = true; }
@TechWithNader
@TechWithNader Жыл бұрын
Nice. Haha, thanks Michel! Some of these exercises are getting quite tough and reduce is quite tricky so I’m glad you’re enjoying them and powering through! 🥳🚀
@KRAKENBACK..
@KRAKENBACK.. Жыл бұрын
i figured out how you would get rid of the - at the end because that kept me up last night wanting to figure out how lol, I ended up using the slice method on concatCities.slice(0, -1). We start slice at 0 to keep the string from the beginning and -1 to get rid of that last - after toronto.
@TechWithNader
@TechWithNader Жыл бұрын
Nice solution! Haha, you're already turning in to a dev 😂 "The code keeping me up at night... must solve!"
Exercises: Array Reduce - Javascript In Depth
35:22
Tech with Nader
Рет қаралды 1,8 М.
HTTP Headers & Methods - Rest APIs In Depth
33:37
Tech with Nader
Рет қаралды 2 М.
Inside Out Babies (Inside Out Animation)
00:21
FASH
Рет қаралды 23 МЛН
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 205 МЛН
All 34 String Methods In JavaScript In ONE VIDEO
1:30:25
Code Explained
Рет қаралды 12 М.
Array Map - Javascript In Depth
25:07
Tech with Nader
Рет қаралды 2,2 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 798 М.
Server Side Data Storage - Rest APIs In Depth
51:58
Tech with Nader
Рет қаралды 683
Exercises: Objects - Javascript In Depth
50:54
Tech with Nader
Рет қаралды 3,3 М.
GET Requests - Rest APIs In Depth
1:09:07
Tech with Nader
Рет қаралды 1,1 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 846 М.
map, filter & reduce 🙏 Namaste JavaScript Ep. 19 🔥
37:42
Akshay Saini
Рет қаралды 877 М.
Server Islands are really cool
35:07
Theo - t3․gg
Рет қаралды 45 М.
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 6 МЛН
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 8 МЛН
Tag him😳💕 #miniphone #iphone #samsung #smartphone #fy
0:11
Pockify™
Рет қаралды 3,9 МЛН
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 544 М.
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 1,1 МЛН