Array Methods in JavaScript | 17 Useful Methods

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

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

  • @parvathisachin3313
    @parvathisachin3313 2 года назад +30

    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  2 года назад +3

      Thanks, really appreciate that Parvathi!

  • @clevermissfox
    @clevermissfox 11 месяцев назад +6

    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

  • @davidallred991
    @davidallred991 2 месяца назад +3

    Even though I have been over all of these things several times, and use some of them all the time, I still like watching videos like this to keep things fresh in mind because I am quite forgetful with programming. Use it or lose it type of thing with me.

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

  • @Sim89na
    @Sim89na 7 дней назад +1

    Ciao, sei talmente bravo che io anche se sono Italiana e non capisco l'inglese, ho capito tutto quello che hai fatto:) grazie mille :)

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

  • @samcarpenter7517
    @samcarpenter7517 4 месяца назад +1

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

  • @Epithermal
    @Epithermal 3 месяца назад +4

    Just to quickly summarise every 17 array methods:
    toString(): Converts an array to a string with elements separated by commas.
    join(): Combines array elements into a string, using a specified separator.
    concat(): Combines two or more arrays into one new array.
    splice(): Adds, removes, or replaces elements in an array at a specified position.
    slice(): Copies a portion of an array into a new array.
    indexOf(): Finds the first occurrence of an element and returns its index, or -1 if not found.
    lastIndexOf(): Finds the last occurrence of an element and returns its index, or -1 if not found.
    forEach(): Runs a function on each array element.
    map(): Creates a new array with the results of running a function on every element.
    filter(): Creates a new array with only the elements that pass a test.
    reduce(): Reduces the array to a single value by running a function on each element.
    some(): Checks if at least one element passes a test.
    every(): Checks if all elements pass a test.
    flat(): Flattens nested arrays into a single array up to a specified depth.
    find(): Returns the first element that passes a test.
    findIndex(): Returns the index of the first element that passes a test.
    sort(): Sorts the elements of an array in place and returns the sorted array.

    • @Madfutof
      @Madfutof 3 месяца назад +2

      Thanks much needed 👍

    • @Epithermal
      @Epithermal 3 месяца назад +2

      @@Madfutof You're welcome

    • @Epithermal
      @Epithermal 3 месяца назад +2

      👍

  • @CapitalM-q4n
    @CapitalM-q4n 8 месяцев назад +1

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

  • @hendmohammed-c7o
    @hendmohammed-c7o 2 месяца назад +1

    I am so lucky to find this channel. Thanks for your efforts

  • @bunnygaming3864
    @bunnygaming3864 6 месяцев назад

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

  • @infoessay21
    @infoessay21 7 месяцев назад +2

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

  • @FurkanKARADENIZ-tt8zf
    @FurkanKARADENIZ-tt8zf 4 месяца назад +1

    This was a great video, not overwhelming for newcomers. Thank you for you effort :)

  • @struth32
    @struth32 5 месяцев назад +1

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

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

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

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

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

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

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

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

  • @nakhan69
    @nakhan69 8 месяцев назад +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.

  • @srikarravoori124
    @srikarravoori124 10 месяцев назад

    Its very good one and explained every array method clearly.

  • @ikechukwuonwusowulu1479
    @ikechukwuonwusowulu1479 8 дней назад +1

    Nice video explained it so easily

  • @PaoloAngelini
    @PaoloAngelini Год назад +2

    Great explanation! Super easy to understand!

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

    Nice video. Thank you 😊

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

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

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

    Thank you, really clear and efficient.

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

    this is so helpful thanks

  • @lucam.2968
    @lucam.2968 6 месяцев назад +1

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

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

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

    Nice man keep this pace going

  • @ElonTusk..
    @ElonTusk.. Год назад

    Damn, that was a great session.
    Thanks man.

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

    Very informative session, Thank you👍

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

    Thanks

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

    it's Excellent! thank you very much!

  • @Realife169
    @Realife169 9 месяцев назад +1

    A great seesion

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

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

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

    really appreciate your work!

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

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

    very informative, thanks 🙏🙏🙏🙏

  • @abeshsarkar4083
    @abeshsarkar4083 10 месяцев назад

    nice video indeed,
    short and load of js cores

  • @karimbouche3563
    @karimbouche3563 3 месяца назад

    Excellent bro

  • @learner3404
    @learner3404 8 месяцев назад

    very good tutorial.

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

  • @trending8881
    @trending8881 2 года назад +2

    Thanks man

  • @WycliffKiramba
    @WycliffKiramba 4 месяца назад +1

    nice content

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

    nice

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

    Great video, thank you.

  • @SD-wj9bv
    @SD-wj9bv Год назад +2

    Bro this video >>>> anything on Udemy

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

    24 carat gold it is

  • @fariadworld446
    @fariadworld446 8 месяцев назад

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

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

    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 11 месяцев назад +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 ♥️♥️♥️♥️