Array Methods in JavaScript | 17 Useful Methods

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 มี.ค. 2022
  • Learn 17 useful array methods in JavaScript:
    toString()
    join()
    concat()
    splice()
    slice()
    indexOf()
    lastIndexOf()
    forEach()
    map()
    filter()
    reduce()
    some()
    every()
    flat()
    find()
    findIndex()
    sort()
    Check out my JavaScript array methods cheat sheet: www.doabledanny.com/javascrip...
    Follow me on Twitter: / doabledanny
    Subscribe to my channel: / @doabledanny

ความคิดเห็น • 51

  • @samcarpenter7517
    @samcarpenter7517 4 วันที่ผ่านมา +1

    Miracles! Succinct definitions instead of mind boggling confusion. A rare thing.

  • @parvathisachin3313
    @parvathisachin3313 ปีที่แล้ว +25

    To be honest, I think this is the most underrated channel, your explanations are so clear for novice programmers like me when we get stuck on some concepts. I cant thank you enough!

    • @doabledanny
      @doabledanny  ปีที่แล้ว +3

      Thanks, really appreciate that Parvathi!

  • @struth32
    @struth32 6 วันที่ผ่านมา +1

    This is awesome! Your explanations are so clear and easy to follow, thank you so much😊.

  • @DullBlaze
    @DullBlaze ปีที่แล้ว +6

    Had a terrible time understanding the methods for arrays and this has been the most helpful yet! Not only did you go over each method but exactly what they did with very clear examples. Thanks so much for making the video!

  • @ighareeb6402
    @ighareeb6402 9 หลายเดือนก่อน +1

    please make more JavaScript tutorials like this. Found it great as a beginner. Going over all the theory and examples then when I go for a walk I can listen to your channel and let it sink in even more! Thanks!!

  • @infoessay21
    @infoessay21 2 หลายเดือนก่อน +2

    Thank you! This was the clearest explanation so far. Please, post more videos about JS topics.

  • @clevermissfox
    @clevermissfox 6 หลายเดือนก่อน +5

    Setup: 0:00
    toString: 1:45
    Join: 2:52
    Concat: 3:53
    Splice: 5:44
    Slice: 9:25
    IndexOf: 11:45
    LastIndexOf: 12:48
    Flat: 13:15
    HIGHER ORDER ARRAY METHODS 15:48
    ForEach: 16:09
    Map: 19:48
    Filter: 21:42
    Reduce: 24:04
    Some: 32:04
    Every: 34:27
    Find: 36:40
    FindIndex: 38:10
    Sort: 38:42

    • @memesalldayjack3267
      @memesalldayjack3267 4 หลายเดือนก่อน +2

      thanks, i was hoping someone had done this

  • @bunnygaming3864
    @bunnygaming3864 หลายเดือนก่อน

    I think i just find the most underrated channel, BTW Thank you sir.

  • @PaoloAngelini
    @PaoloAngelini ปีที่แล้ว +2

    Great explanation! Super easy to understand!

  • @user-qw8jf1lb1d
    @user-qw8jf1lb1d 3 หลายเดือนก่อน +1

    Wonderful, easy to adapt and share with others, the one video holds everything regarding Array Methods.

  • @vinayj6293
    @vinayj6293 ปีที่แล้ว +1

    I have learnt n understand the basic work these methods of array thanks a lot your time n patience

  • @ybocktor7781
    @ybocktor7781 11 หลายเดือนก่อน +1

    Thank you, really clear and efficient.

  • @GaneshH
    @GaneshH 2 ปีที่แล้ว +3

    Thanks, really great walkthrough.
    I've always been a bit unsure about reduce() but if I understood correctly its when you want to loop through the array and have each of the values contribute to something bigger to represent the array, the video helped a lot.
    I never realised the some() and every() function existed, I'll definitely make use of it to ditch Boolean flags and For Loops!

    • @doabledanny
      @doabledanny  2 ปีที่แล้ว +2

      Thanks Ganesh, glad you found it useful! Yeah, I think you're right about reduce - it's when you want to loop through and reduce the array down to one value that represents something from the array (like the max value or total)

  • @jestaman3356
    @jestaman3356 11 หลายเดือนก่อน +1

    Great video and easy to follow. You also have a very calming voice that's pleasing to listen to. Cheers!

    • @doabledanny
      @doabledanny  11 หลายเดือนก่อน

      Thanks Jest!

  • @hosseinpanahy5358
    @hosseinpanahy5358 ปีที่แล้ว +1

    This is awesome sir... you're underrated but we'll support you to be lionized ♥️♥️♥️♥️

  • @lucam.2968
    @lucam.2968 หลายเดือนก่อน +1

    Thanx a lot - -I just built a nice cheat sheet --:)

  • @hosseinpanahy5358
    @hosseinpanahy5358 ปีที่แล้ว +1

    Nice man keep this pace going

  • @mwk221TopG
    @mwk221TopG ปีที่แล้ว +1

    really appreciate your work!

  • @edhead76
    @edhead76 6 หลายเดือนก่อน

    this is so helpful. thank you so much for putting this together.

  • @ElonTusk..
    @ElonTusk.. 9 หลายเดือนก่อน

    Damn, that was a great session.
    Thanks man.

  • @nakhan69
    @nakhan69 3 หลายเดือนก่อน +1

    I really thank you so much for your explanation. I understood every bit of it and it is very clear to me. Thank you SIR.

  • @lmn491
    @lmn491 10 หลายเดือนก่อน

    Very informative session, Thank you👍

  • @srikarravoori124
    @srikarravoori124 5 หลายเดือนก่อน

    Its very good one and explained every array method clearly.

  • @candulapopworld
    @candulapopworld ปีที่แล้ว +1

    it's Excellent! thank you very much!

  • @JoeMumo
    @JoeMumo ปีที่แล้ว +1

    very informative, thanks 🙏🙏🙏🙏

  • @programwithdenis3643
    @programwithdenis3643 8 หลายเดือนก่อน

    Nice tutorial. Let me ask what extension HV u installed to make your vs auto suggest (predict what to type)?

  • @khalidelgazzar
    @khalidelgazzar 5 หลายเดือนก่อน +1

    Nice video. Thank you 😊

  • @shedo7275
    @shedo7275 5 หลายเดือนก่อน +1

    this is so helpful thanks

  • @trending8881
    @trending8881 2 ปีที่แล้ว +2

    Thanks man

  • @learner3404
    @learner3404 3 หลายเดือนก่อน

    very good tutorial.

  • @abeshsarkar4083
    @abeshsarkar4083 5 หลายเดือนก่อน

    nice video indeed,
    short and load of js cores

  • @alexthewebdesigner1856
    @alexthewebdesigner1856 ปีที่แล้ว

    @DoableDanny
    at 7:43 I don't understand why you had to use the spread operator instead of just copying names into namesCopy? Is it because, technically, namesCopy would reference the same array in memory if you didn't do it the way that you did?
    Great video, by the way!

  • @GayanRamyaKumaragtk
    @GayanRamyaKumaragtk ปีที่แล้ว +2

    Good explanation and I appreciate your effort. Please share a video series about data structures and algorithms with javascript. 🥰🥰🥰

    • @doabledanny
      @doabledanny  ปีที่แล้ว

      Thanks Gayan. I might make some data structure & algo videos in the future. For now, you could check out my blog as I have quite a few articles on that subject: www.doabledanny.com/blog/

  • @ShuangsArtLife
    @ShuangsArtLife ปีที่แล้ว +1

    Thanks for sharing!
    What's the extension in VS code installed?
    Such as the hint when you use the method of "join" the string.

    • @doabledanny
      @doabledanny  ปีที่แล้ว +1

      My JavaScript extensions are JavaScript (ES6) code snippets and ESLint

  • @islammahmoud4979
    @islammahmoud4979 ปีที่แล้ว +1

    Great video, thank you.

  • @capslock3250
    @capslock3250 8 หลายเดือนก่อน +1

    Thanks

  • @Realife169
    @Realife169 4 หลายเดือนก่อน +1

    A great seesion

  • @mahdiandalib186
    @mahdiandalib186 7 หลายเดือนก่อน +1

    nice

  • @svmaths830
    @svmaths830 6 หลายเดือนก่อน +1

    🦁🦁

  • @RajeevCanDev
    @RajeevCanDev 11 หลายเดือนก่อน +3

    24 carat gold it is

  • @fariadworld446
    @fariadworld446 3 หลายเดือนก่อน

    I still do not understand the reduce method after 2 and half years been working with JS

  • @SD-wj9bv
    @SD-wj9bv ปีที่แล้ว +2

    Bro this video >>>> anything on Udemy

  • @nicolaed440
    @nicolaed440 2 หลายเดือนก่อน

    cool video but so annoying when the keyboard and mouse are heard louder than the voice, yes I know programmers like this mechanical keyboard but in the video is....

  • @siddhanttripathi5224
    @siddhanttripathi5224 6 หลายเดือนก่อน +1

    logic is nicely explained but naming variables sucks

  • @hosseinpanahy5358
    @hosseinpanahy5358 ปีที่แล้ว +1

    This is awesome sir... you're underrated but we'll support you to be lionized ♥️♥️♥️♥️