JavaScript Array Map Method Practice in 5 Minutes

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

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

  • @mlntdtechbae
    @mlntdtechbae Год назад +6

    JS is getting easier and easier for me to understand with tutorials like this, so thank you!

  • @Chillycloth
    @Chillycloth Год назад +3

    Incredibly clear. I loved that you used multiple examples to demonstrate different uses. Also helped me recognize the pattern of using it. Thank you so much

  • @mitchell4217
    @mitchell4217 3 года назад +15

    Had no idea you could return a full object with map. Great stuff!

  • @irfanhakimi487
    @irfanhakimi487 10 месяцев назад +1

    This very good ,simple ,practical and very easy to understand , thanks so much for the video 😁

  • @abhikb
    @abhikb 3 года назад +21

    I am always confused between map and forEach , this video gave me some insights of map function , looking forward to your next videos to clear my doubts , BTW great content , Keep posting these amazing helpful contents

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

    A very clear and concise tutorial on JS Array Method: map() - Thanks, James.
    {2023-02-02}

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

    I finally understood the map method!! Thank you. Subscribed :)

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

    Epic array tutorial. Thanks, James. I’m making it my mission to watch ALL of your videos!

  • @barssavas9938
    @barssavas9938 3 года назад +3

    Thank you !!! Awesome content . especially last part ( the firstname trick ) is going to help me a lot.

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

    BRO thank you !!! this cleared up objects and arrays for me thank you thank you

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

    Wow! Can’t believe how easy it is!
    Thank you for explaining it that way you did!

  • @최지우-r6b
    @최지우-r6b Год назад

    Thank you very much for this short and very informative video!

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

    Crisp and clear... Explained all that required...

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

    Thanks for delivering your explanation simply and concisely - first video I watched on the subject; no need to continue searching. 👍👍

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

    Your explanation was spot on. Thank you so much 🙏🏾.

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

    This was a really fantastic, consice explanation and I understood more quickly than I did after a long while of reading through online articles on the subject! Really appreciate it!

  • @aaronlinton-chambers
    @aaronlinton-chambers 3 года назад +2

    This is Perfect Thanks again James I am working on arrays this is helping a lot. I really like your teaching style.

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

    I finally memorized the syntax, thanks!

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

    your eyes show that you are dedicated to programming!
    good video!

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

    Thank you sooooo much for this complete vid. That's gold !!!

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

    these vids help me learn better. thanks james.

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

    Thank you for the great explantation of how a map works, and for the tip regarding the shorthand arrow function without the return if you only want one thing! This will help me a lot

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

    I love your quick version. Thanks.

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

    Thanks James! Great content.

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

    This video helped me a lot. Thanks, James Q Quick.

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

    Dude your explanation was so mindblowing...im Brazilian so i get most of my classes in portuguese but everytime i dont understand a concept i get some english classes and they are SO MUCH better to explain my doubts. Dont know if is a limitation of my language or if my teachers suck so much ass to explain.

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

      Haha I guess learning programming in English is easier sometimes, because of the language used in programing generally (so English). Also, James is a terrific teacher!

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

    Yo this video was great I needed this thanks man!

  • @01kmacias
    @01kmacias 2 года назад

    Thank you for providing a simple explanation of this!

  • @alexandrmeyer
    @alexandrmeyer 11 месяцев назад

    Fantastic job on explaining, thank you very much! Separate thank you for the SW :) What plugin are you using for changing your arrow to a nice one?

    • @JamesQQuick
      @JamesQQuick  11 месяцев назад +1

      Yeah! Glad you enjoyed it. Those are called font ligatures. You can turn them on in your VS Code settings

    • @alexandrmeyer
      @alexandrmeyer 11 месяцев назад

      @@JamesQQuick Great, I appreciate your reply :) Just have set, works like a charm

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

    Thanks. That last practice example was the best.

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

    Got what I was looking for! Thanks!!!!!

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

    Loved this! Explained very well.

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

    Really love this video, thank gorgeous human being for this marvelous content. The star wars reference make it more easy to understand.

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

    This was incredibly helpful. Thank you

  • @__jake.m
    @__jake.m 2 года назад

    Thank you so much for this! 😄

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

    I am new to your channel. Thanks alot. Yes I pressed that big reb button

  • @Joker-jz9cn
    @Joker-jz9cn 2 года назад

    Watching your and Navin Reed video really helped me understand the concept on codecademy

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

    What if I need to change just one property value and then return the entire object array with the new values?

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

    Awesome video! Can't wait for the "reduce" method.

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

    Where this man has been ? Found This Brilliant man who is really Nice in Teaching the pure JavaScript 😍😍

  • @chips-n-salsa
    @chips-n-salsa 2 года назад

    thank you for this video. Super helpful!

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

    Amazing tutorial! Thank you

  • @M-Esmaeili
    @M-Esmaeili 2 года назад

    Thanks a lot James🤩

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

    Great video! I have one question...how does it not return undefined when the arguments being used are 'character' instead of 'characters' which is the name of the initial array? when i wrote this code out it didn't work unless the argument was the same name as the array.

    • @14lrmg
      @14lrmg 2 года назад

      same question

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

    did you have to install the font inside VS code to get the proper styling in its built-in editor just like in iTerm, Hyper or the terminal that came with the OS?

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

    I'm undertaking a bootcamp right now and this refresher is really nice. I forgot you can use an implicit return for anoymous functions. I'll definitely make use of that. And yes, folks; Array methods are crucial, especially map when making tables and filtering data. And it isn't even just Javascript but Python as well(which I started coding before going to Javascript.). Good work.

  • @LizyAd
    @LizyAd 7 месяцев назад

    Incredibly done.

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

    What plugin/extension do you use to get the resizing cursor?

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

    Thanks really helped me

  • @عبدالقادرعبدالرحمنعبدالله

    Great. Thanks
    But one thing you did not mention for all array functions used in this playlist is that, if a given condition is not met or tests false, what kind of value is returned by those functions like an empty array in this case "Map" function.

  • @lightingvulture
    @lightingvulture Год назад +1

    THANK YOU

  • @Nick.....
    @Nick..... 2 года назад

    Great Video!

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

    Thanks a lot, really learned a lot :-)!

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

    Can you explain why you have mass and height values as strings? Im new to js and dont know why not just numbers

  • @7073shea
    @7073shea 2 года назад

    Very good bro thanks

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

    You are great. Thank you

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

    how do you add the lambda arrow ( => ) in such a nice way on vs code??

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

    thank you good sir!

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

    great content. this is what i need. auto subscribe!

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

    this was perfect

  • @ИванПарапанов
    @ИванПарапанов Год назад

    man, thank you so much:)

  • @asdiasx
    @asdiasx 3 года назад +4

    Great content! I really like this kind of videos, straight to the point! 🙂

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

    Hi man, thanks for this explanation video and I just followed your code but when the last part to get all the first name
    (characters) => characters.name.split(" "[0]);
    it returns to me an array but with 2 elements inside it like this:
    0: (2) ['Luke', 'Skywalker']
    1: (2) ['Darth', 'Vader']
    2: (2) ['Leia', 'Organa']
    3: (2) ['Anakin', 'Skywalker']
    but when I change it to characters.name.split( " ", 1); it works and the result with all the first name with 1 element inside the array.
    maybe you can give me a little hint how is that happen, and any help would be appreciate. Thank you very much :D

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

    Dumb question: How do you get array results into the html though?... like on the page for people to see? What do I have to search to find out how to do that?

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

    lol your intro for this series makes siri play music (from 00:25 - 00:32) XD

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

    This is awesome

  • @josh_michel1604
    @josh_michel1604 9 месяцев назад

    Why didn’t I find this video sooner!!!

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

    Thank you

  • @jessicarodrigues-dlouhy575
    @jessicarodrigues-dlouhy575 Год назад

    I wish you could be my mentor!

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

    Ok, I can console.log The minifiedRecords, but how do you convert the name & height object to an innerHTML or show it on a web page?

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

      Well you’d have to get a reference to that dom element. Then set its innerText property to a string that includes those values.

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

      @@JamesQQuick Thanks!

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

    This video and all the other coding videos on youtube😅are very useful if one is planing to make population controll.

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

    Fantastic

  • @Human_Evolution-
    @Human_Evolution- 3 года назад

    What is the extension for the fancy arrow functions and the triple equals?

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

      They’re don’t ligatures. It’s a setting that you can turn on if your font supports it

    • @Human_Evolution-
      @Human_Evolution- 3 года назад

      @@JamesQQuick got it. And I'm rock"n Fira. If only I knew how to code.

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

    Nice Video !!!!

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

    const characters = [
    {
    name: 'Luke Skywalker',
    height: '172',
    mass: '77',
    eye_color: 'blue',
    gender: 'male',
    },
    {
    name: 'Darth Vader',
    height: '202',
    mass: '136',
    eye_color: 'yellow',
    gender: 'male',
    },
    ]
    need only luke as output how can we do using map,filter.
    output : ['Luke']

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

    perfect

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

    please tell the vscode theme very nice

  • @pXxDisasteRxXq
    @pXxDisasteRxXq 2 месяца назад

    3:55 can't understand why you added the parentheses

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

    how do you get the returns in the terminal¡?=?¡

    • @JamesQQuick
      @JamesQQuick  Год назад +1

      I'm using the Quokka VS Code extenion

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

    You should do .sort()

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

      Coming up tomorrow or the day after :)

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

    I got lost in the last part, I though split only worked in strings :c

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

    Not sure where the github link is ...

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

      Its the tiny url. I'd just select it and go to it, then clone the repository in VS Code.

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

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

    you goddamn beautiful, beautiful, man. thanks bro.

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

    This is object in arrays

  • @231-o5m
    @231-o5m 2 года назад

    yy

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

    I also do videos about programming!😁

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

    joe exotic?

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

    const characters = [
    {
    name: 'Luke Skywalker',
    height: '172',
    mass: '77',
    eye_color: 'blue',
    gender: 'male',
    },
    {
    name: 'Darth Vader',
    height: '202',
    mass: '136',
    eye_color: 'yellow',
    gender: 'male',
    },
    ]
    need only luke as output how can we do using map,filter.
    output : ['Luke']

  • @SubhamKumar-9009
    @SubhamKumar-9009 3 года назад

    perfect