@@sureshmg6786 No, I mean accumulator, item. The first argument of the reduce's callback is accumulator and second argument is array element. developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce
Ur watch time would increase if u would just zoom in and make it easier for us to see what's going on in the screen. Or people would just stop watching ur vid midway like how I am leaving
So concise and really well done. Thanks for this!
Wow the real world example helps alot. Thanks
Thanks for the excellent explanation, using separate methods and then combine them into a new function.
In the last example .map() just felt like another .filter() , good video!
Thanks
Many thanks for this. A good explanation!
Amazing and concise
finally, i understood how this works and for what, thank you!
very good explanation on the reduce!
Free checker is an email logger your email list can be retrieved by the tools builder
thank you heaps, wonderful video, clear and precise with a good example, filter,map and reduce doesnt scare me anymore..haha
Great explanation.SHORT AND SMART AND SWEET AND SUPER
very good examples thank you !
This explanation is awesome! Thanks a lot!
You are welcome.
Thanks man,great explanation
great explanation, thanks
If it's passable or not in Multidimensional array map and reduce filter in lamda expression
If it's passable how to do example
Can you be more specific?
Very nicely explained
The explanation was good thanks
Great explanation
Thank you for this lesson
Fantastic
const appreciationArr = [
{
id: 1,
msg: "All 3 methods explained very well,"
},
{
id: 1,
msg: " Thanks a lot!"
},
{
id: 2,
msg: "Good job "
},
{
id: 2,
msg: "and keep going!!"
},
];
const resultArr = appreciationArr
.filter((item) => item.id === 1)
.map((resItem) => resItem.msg)
.reduce((item1, item2) => {
return item1 + item2;
});
console.log(resultArr);
Love your comment man,
Just item1 should probably be named as accumulator
@@TheCodeholic you mean like accumulator1, accumulator 2?
@@sureshmg6786 No, I mean accumulator, item.
The first argument of the reduce's callback is accumulator and second argument is array element.
developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce
How do u view an output in the terminal of vscode????
open terminal then type >> node filename.js >>then hit enter
Could not get these to click. It just clicked. Thanks!
such a good explanation 👌
thanku sir ur heroo..
Nice explanation
awesome explanation
Glad you liked it
Thank yōu sir
We are new learners …… now here in 2023 ❤😢
why you arent working in console.. it is not look good to learn on your site
I'm still as lost as I was before watching. I guess I need a break for my brain to work again...
These weren’t real world examples.
Ai biết tiếng việt có thể vietsub lại được không? Tiếng anh của mình rất kém nên không thể hiểu được anh ấy nói gì . Please
i love uuuuuuuuuuuuuuuuuu
bokkala cheppav
\
Ur watch time would increase if u would just zoom in and make it easier for us to see what's going on in the screen. Or people would just stop watching ur vid midway like how I am leaving
Thanks for your comment. I am already doing this in my latest videos.
I can see well and clear. See an eye doctor
@@alexmercer6585 Only if the doctor is zoomable.