You've got yourself another well-deserved subscriber. Your teaching style is excellent and very easy to follow. Thanks for introducing me to the concept of chaining methods together, this is fantastic!
thank u so much bro so i did learn before people say arrow function don't need return so I did try it its work so just like that, const names = people.map((person) => person.name); thanx anyway
What does "person" represent? Is "person" suppose to be an object in the new array? Trying to map the syntax to the logic. Thank you for your channel. New subscriber!
In the map case... what happens if one of the 3 objects has no name porperty? The resulting array woudn't be of the same length as the original? Or what??
He is mapping through people, creating person as the argument, then passing in the person.name as the return value. Person.name goes back to the people array and grabs the name of each person then moving it to the new names variable.
@@larkharo8863 Thank you! When a function argument uses a label that has not been defined elsewhere, that's basically like creating a variable for the function that represents the argument of the function, is that right?
I'm not that dev who drops comments on every tutorial, but bro honestly, you gat it ! Big thumbs up
You're a great teacher, this was super helpful.
You've got yourself another well-deserved subscriber. Your teaching style is excellent and very easy to follow. Thanks for introducing me to the concept of chaining methods together, this is fantastic!
Thanks for your efforts. These methods are really great, useful and pratic.
In my beginner opinion, you explained this super well, thank you!
thank u so much bro so i did learn before people say arrow function don't need return so I did try it its work so just like that, const names = people.map((person) => person.name); thanx anyway
Welcome 👍 arrow functions don't need to use "return" when you have a one-liner.
@@dcode-software thx bro
This a perfect example to describe 3 simple functions that seem complex.
I subscribed.
I loved your video it really helped me with a tough project I'm undertaking at work. You are awesome! *Subscribed*
My understanding with these arrays methods after watching your video 📈📈
What does "person" represent? Is "person" suppose to be an object in the new array? Trying to map the syntax to the logic. Thank you for your channel. New subscriber!
Finally something to understand. Great example. Thank you!
You're welcome! Happy it helped
Very interesting demo. Thank you.
Thank you brother. I came here for this reason !!!
This made it so understandable, thank you
Thanks a lot, very simple to understand
Made it simple and easy to understand Thanks man!
Glad to hear it!
That made it easy to learn! Ty sir
This made it so understandable
my brain started drifting away in the middle of the reduce method explanation.
very nice video brother
Great explanation man.
helped alot, your a king
Nice explanation over the topic!
thank you so much!!!
You're welcome, glad it was helpful!
Awesome 👍😎
The Udemy course link isn’t working from the U.S.
what about when with an array provided you get .filter is not a function? an array passed into a function to filter the array.
Hi. What color do you use vscode for?
I use the 'dcode' VS Code theme - you can find it on the VS Code Marketplace
@@dcode-software 💕❤❤❤
In the map case... what happens if one of the 3 objects has no name porperty? The resulting array woudn't be of the same length as the original? Or what??
I just checked, it fills that space in the array with undefined
thanks brooo !
You're welcome mate.
How does the code know that "person" refers to the objects in the array if the name of the objects (person) was never defined?
He is mapping through people, creating person as the argument, then passing in the person.name as the return value. Person.name goes back to the people array and grabs the name of each person then moving it to the new names variable.
@@larkharo8863 Thank you! When a function argument uses a label that has not been defined elsewhere, that's basically like creating a variable for the function that represents the argument of the function, is that right?
nice
well deserved follow and like simple and nice explanation