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

Поделиться
HTML-код
  • Опубликовано: 23 янв 2025

Комментарии • 45

  • @victormuuo235
    @victormuuo235 11 месяцев назад +2

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

  • @StevieB86
    @StevieB86 2 года назад +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!

  • @AustinThomasFilms
    @AustinThomasFilms 4 месяца назад

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

  • @Shadel.
    @Shadel. Год назад +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!

  • @Neddie2k
    @Neddie2k Год назад

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

  • @shanardgreen513
    @shanardgreen513 2 года назад +1

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

  • @freddyrichter5920
    @freddyrichter5920 2 года назад +1

    This made it so understandable, thank you

  • @alexisrodriguez-n8m
    @alexisrodriguez-n8m Год назад

    Made it simple and easy to understand Thanks man!

  • @antonijabaric8389
    @antonijabaric8389 Год назад

    Finally something to understand. Great example. Thank you!

  • @malikgulraiz3659
    @malikgulraiz3659 Год назад

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

  • @srinivasaraoyp3640
    @srinivasaraoyp3640 Год назад

    Very interesting demo. Thank you.

  • @parinsheth4971
    @parinsheth4971 3 года назад +1

    That made it easy to learn! Ty sir

  • @thanasisathanasi4965
    @thanasisathanasi4965 2 года назад

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

  • @midwestmetro6361
    @midwestmetro6361 Год назад

    Thanks a lot, very simple to understand

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

  • @summitbs
    @summitbs 2 года назад

    This made it so understandable

  • @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!

  • @chromechef891
    @chromechef891 2 года назад

    Nice explanation over the topic!

  • @youvegotmail9385
    @youvegotmail9385 2 года назад

    Great explanation man.

  • @joshuaogbum8930
    @joshuaogbum8930 3 года назад

    helped alot, your a king

  • @rangabharath4253
    @rangabharath4253 3 года назад +1

    Awesome 👍😎

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

  • @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.

  • @mahgah-6006
    @mahgah-6006 Год назад

    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.

    • @mahgah-6006
      @mahgah-6006 Год назад

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

  • @rhn8696
    @rhn8696 2 года назад +1

    thank you so much!!!

  • @simranjit2000
    @simranjit2000 Год назад

    very nice video brother

  • @nnourrrrr
    @nnourrrrr Год назад

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

  • @hellothere8547
    @hellothere8547 3 года назад +1

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

  • @BSITVinluanEner
    @BSITVinluanEner 2 года назад

    thanks brooo !

  • @nedyalkotodorov4535
    @nedyalkotodorov4535 2 года назад

    well deserved follow and like simple and nice explanation

  • @andrewmallett4516
    @andrewmallett4516 2 года назад

    nice