Map, Filter & Reduce EXPLAINED in JavaScript - It's EASY!

Поділитися
Вставка
  • Опубліковано 13 жов 2024

КОМЕНТАРІ • 45

  • @victormuuo235
    @victormuuo235 8 місяців тому +1

    I'm not that dev who drops comments on every tutorial, but bro honestly, you gat it ! Big thumbs up

  • @AustinThomasFilms
    @AustinThomasFilms 22 дні тому

    You're a great teacher, this was super helpful.

  • @StevieB86
    @StevieB86 Рік тому +4

    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!

  • @Shadel.
    @Shadel. 10 місяців тому +1

    Thanks for your efforts. These methods are really great, useful and pratic.

  • @Phill_F
    @Phill_F Рік тому

    In my beginner opinion, you explained this super well, thank you!

  • @Salah-YT
    @Salah-YT 2 роки тому +4

    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

    • @dcode-software
      @dcode-software  2 роки тому +4

      Welcome 👍 arrow functions don't need to use "return" when you have a one-liner.

    • @Salah-YT
      @Salah-YT 2 роки тому +1

      @@dcode-software thx bro

  • @Neddie2k
    @Neddie2k Рік тому

    This a perfect example to describe 3 simple functions that seem complex.
    I subscribed.

  • @shanardgreen513
    @shanardgreen513 Рік тому +1

    I loved your video it really helped me with a tough project I'm undertaking at work. You are awesome! *Subscribed*

  • @malikgulraiz3659
    @malikgulraiz3659 Рік тому

    My understanding with these arrays methods after watching your video 📈📈

  • @academicdeaneducation6671
    @academicdeaneducation6671 Рік тому +1

    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!

  • @antonijabaric8389
    @antonijabaric8389 Рік тому

    Finally something to understand. Great example. Thank you!

  • @srinivasaraoyp3640
    @srinivasaraoyp3640 Рік тому

    Very interesting demo. Thank you.

  • @thanasisathanasi4965
    @thanasisathanasi4965 Рік тому

    Thank you brother. I came here for this reason !!!

  • @freddyrichter5920
    @freddyrichter5920 2 роки тому +1

    This made it so understandable, thank you

  • @midwestmetro6361
    @midwestmetro6361 Рік тому

    Thanks a lot, very simple to understand

  • @alexisrodriguez-n8m
    @alexisrodriguez-n8m Рік тому

    Made it simple and easy to understand Thanks man!

  • @parinsheth4971
    @parinsheth4971 3 роки тому +1

    That made it easy to learn! Ty sir

  • @summitbs
    @summitbs 2 роки тому

    This made it so understandable

  • @nour3660
    @nour3660 Рік тому

    my brain started drifting away in the middle of the reduce method explanation.

  • @simranjit2000
    @simranjit2000 Рік тому

    very nice video brother

  • @youvegotmail9385
    @youvegotmail9385 2 роки тому

    Great explanation man.

  • @joshuaogbum8930
    @joshuaogbum8930 3 роки тому

    helped alot, your a king

  • @chromechef891
    @chromechef891 2 роки тому

    Nice explanation over the topic!

  • @rhn8696
    @rhn8696 2 роки тому +1

    thank you so much!!!

  • @rangabharath4253
    @rangabharath4253 3 роки тому +1

    Awesome 👍😎

  • @hellothere8547
    @hellothere8547 3 роки тому +1

    The Udemy course link isn’t working from the U.S.

  • @scott_itall8638
    @scott_itall8638 Рік тому

    what about when with an array provided you get .filter is not a function? an array passed into a function to filter the array.

  • @amerhaadiaan6374
    @amerhaadiaan6374 3 роки тому +2

    Hi. What color do you use vscode for?

    • @dcode-software
      @dcode-software  3 роки тому +2

      I use the 'dcode' VS Code theme - you can find it on the VS Code Marketplace

    • @amerhaadiaan6374
      @amerhaadiaan6374 3 роки тому

      @@dcode-software 💕❤❤❤

  • @user87546
    @user87546 Рік тому

    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??

    • @user87546
      @user87546 Рік тому

      I just checked, it fills that space in the array with undefined

  • @BSITVinluanEner
    @BSITVinluanEner 2 роки тому

    thanks brooo !

  • @Mark-nh7zg
    @Mark-nh7zg Рік тому

    How does the code know that "person" refers to the objects in the array if the name of the objects (person) was never defined?

    • @larkharo8863
      @larkharo8863 Рік тому

      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.

    • @Mark-nh7zg
      @Mark-nh7zg Рік тому

      @@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?

  • @andrewmallett4516
    @andrewmallett4516 2 роки тому

    nice

  • @nedyalkotodorov4535
    @nedyalkotodorov4535 2 роки тому

    well deserved follow and like simple and nice explanation