Higher Order Functions Javascript | forEach, filter, map, and reduce functions

  Рет қаралды 21,719

Dave Gray

Dave Gray

Күн бұрын

Пікірлер: 41
@oncoding4520
@oncoding4520 Жыл бұрын
As I told you... For each video that I will watch I will comment and like the video. Its the most basic support that we can give to you. What I like about your videos is that they are somehow "long' and I think that programming videos should be not short. We are learning concepts here, and concepts are just theory you need to dive deep to understand in order to form the mental pattern. So keep up the good work and thank you for what you are doing for us.
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Thank you for the support!
@80Vikram
@80Vikram 2 жыл бұрын
This is best explanation of HOF I found on YT till date, thanks a ton for your efforts. God bless you.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
You're welcome! 💯
3 жыл бұрын
We liked how you showed things and tie them together , Hope you can continue making these kind of videos
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
Thanks!
@stillnai
@stillnai 2 жыл бұрын
bro this was really well explained, thank you! also appreciate the clean and modern js
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you! 💯
@yatin1370
@yatin1370 Жыл бұрын
This was such a top notch tutorial! Thanks for providing MDN links too, I used it for reduce( ) and accumulator concept is clear!
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Glad it was helpful!
@silva_santos
@silva_santos 3 жыл бұрын
Thanks for the explanations, I really needed this 🙏🏻
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
You're welcome!
@CondeAlberto
@CondeAlberto 2 жыл бұрын
Very clear, we keep going forward. Thank you again Dave.
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Keep making that daily progress! 🚀
@Pareshbpatel
@Pareshbpatel 2 жыл бұрын
A great tutorial on Higher Order Functions. Beautifully explained. Thank you, Dave {2022-03-09}
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Thank you, Paresh!
@nabilc0d3z
@nabilc0d3z Жыл бұрын
As usual! free and high quality video. Thank you so much Dave 🙏🏽 I wonder if I can have or play with the files you are demonstrating with 😅
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
It's good to recreate these files / examples on your own :)
@nabilc0d3z
@nabilc0d3z Жыл бұрын
@@DaveGrayTeachesCode Thank you, I actually did just that 😅
@abdirahmanabdullahi1966
@abdirahmanabdullahi1966 2 жыл бұрын
Thanks grey for this beautiful video. short and precise
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
You're very welcome! 💯
@kostiantynkarzhanov9216
@kostiantynkarzhanov9216 Жыл бұрын
Thank you so much!💛
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
Welcome!
@viditgoel2909
@viditgoel2909 11 ай бұрын
thanks for this tutorial
@user-ls4wj4oc4v
@user-ls4wj4oc4v Жыл бұрын
Hi Dave, I've a doubt here, so this lecture starts as A higher order function does at least ONE of the following: 1) takes one or more functions as an argument (parameter) 2) returns a function as its result. so but the functions written in this lecture are taking post obj as argument and again doing some computation and returning again an arg which is obj. so please help me understand this part. thank you for the lectures though
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
All of these functions take an anonymous function as their argument. Post is the parameter of the anonymous function.
@OlaRsk
@OlaRsk 5 ай бұрын
If I understand, that was why the reduce function could take two argument (sum, post)
@SC-bv6kx
@SC-bv6kx 3 жыл бұрын
Hi Dave, great video as always! I understand the map method doesn't mutate the original array. After I saw the example you provide (return id * 10), I was thinking what if I want to update id to id * 10, and return a new array. How can I do that? Create a new array and push the new ids in? Thank you for your time!
@DaveGrayTeachesCode
@DaveGrayTeachesCode 3 жыл бұрын
From what you are describing, I think your solution with creating a new array and pushing in the new id values would work. As you noted, map would not mutate the original values like you are wanting to.
@siddiqahmed3274
@siddiqahmed3274 2 жыл бұрын
Const people = [ { name: 'siddiq', age: 20} , { name: 'anas', age: 19}] Const arr = people.reduce((acc, curr) => acc.push(curr.age), []) It is not working. What i want is to creare an array with only ages...??
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
After you define your people array, try this: people.map(person => person.age);
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
After you define your people array, try this: people.map(person => person.age);
@siddiqahmed3274
@siddiqahmed3274 2 жыл бұрын
@@DaveGrayTeachesCode okay thank you sir. But could you please explain why that thing is giving an error. It is constantly saying acc.push is not a function ( or something like that)?
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
@@siddiqahmed3274 You don't want to use array.push () inside of map. map() already returns a new array.
@abdulrahmanagboolaosho3582
@abdulrahmanagboolaosho3582 Жыл бұрын
could you please do a javascript full project like you did with html and css
@abdulrahmanagboolaosho3582
@abdulrahmanagboolaosho3582 Жыл бұрын
or even a html, css and javascript full project you could even use the little taco shop
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
I have a playlist on my channel with Vanilla JavaScript projects: kzbin.info/aero/PL0Zuz27SZ-6PA3nkkEAr91n4bK-NunwPU
@ajith7682
@ajith7682 Жыл бұрын
im facing error in importing the json data saying "Cannot use import statement outside a module"..pls help me
@DaveGrayTeachesCode
@DaveGrayTeachesCode Жыл бұрын
You will need to indicate the script is a module. From lesson 24: kzbin.info/www/bejne/h2S2c6Kdn7qZg80
@prasanthdeventhiran4159
@prasanthdeventhiran4159 2 жыл бұрын
dave i need one help dave can you please provide your email i wukk send error screenshot for you please help me dave
@DaveGrayTeachesCode
@DaveGrayTeachesCode 2 жыл бұрын
Hello Prasanth, you may have already asked in my Discord, but if not, here is a link: discord.gg/neKghyefqh I'm getting ready to check questions there now.
Callbacks, Promises, Async Await | JavaScript Fetch API Explained
1:05:05
Higher Order Functions - JavaScript Tutorial
10:10
ColorCode
Рет қаралды 65 М.
Oh No! My Doll Fell In The Dirt🤧💩
00:17
ToolTastic
Рет қаралды 13 МЛН
Incredible Dog Rescues Kittens from Bus - Inspiring Story #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 36 МЛН
Array Method filter map reduce
9:35
Telusko
Рет қаралды 66 М.
Map, Filter & Reduce EXPLAINED in JavaScript - It's EASY!
11:23
JavaScript Function - What's your Function?
12:27
Fireship
Рет қаралды 183 М.
Higher Order Functions in JavaScript Explained Simply
9:55
Teddy Smith
Рет қаралды 7 М.
16.5: Higher Order Functions in JavaScript - Topics of JavaScript/ES6
16:21
Oh No! My Doll Fell In The Dirt🤧💩
00:17
ToolTastic
Рет қаралды 13 МЛН