Common Array Methods – Beau teaches JavaScript



Learn how to use 10 different array methods in JavaScript. The array methods featured in this video are push, pop, concat, join, reverse, shift, unshift, sort, slice, and splice.

Code:
🔗 http://codepen.io/beaucarnes/pen/WRdpvR?editors=0012
More information:
🔗 http://www.korenlc.com/common-javascript-array-methods/

See Briana Swift explain arrays and objects: https://youtu.be/yHLGUxt0EKc?list=PLWKjhJtqVAbmfoj2Th9fvxhHIeqFO7wOy

Beau Carnes on Twitter: https://twitter.com/carnesbeau

⭐JavaScript Playlists⭐
▶JavaScript Basics: https://www.youtube.com/playlist?list=PLWKjhJtqVAbk2qRZtWSzCIN38JC_NdhW5
▶ES6: https://www.youtube.com/playlist?list=PLWKjhJtqVAbljtmmeS0c-CEl2LdE-eR_F
▶Design Patterns: https://www.youtube.com/playlist?list=PLWKjhJtqVAbnZtkAI3BqcYxKnfWn_C704
▶Data Structures and Algorithms: https://www.youtube.com/playlist?list=PLWKjhJtqVAbkso-IbgiiP48n-O-JQA9PJ
▶Clean Code: https://www.youtube.com/playlist?list=PLWKjhJtqVAbkK24EaPurzMq0-kw5U9pJh


We’re busy people who learn to code, then practice by building projects for nonprofits. Learn Full-stack JavaScript, build a portfolio, and get great references with our open source community.

Join our community at https://freecodecamp.com
Follow us on twitter: https://twitter.com/freecodecamp
Like us on Facebook: https://www.facebook.com/freecodecamp
Follow Quincy on Quora: https://www.quora.com/Quincy-Larson

source

This Post Has 22 Comments

  1. A A

    Use your code for good. You are a hero Beau! Thank you for your time and videos (=

  2. Israel Hernandez

    Thanks beau! I love how you go straight to the fucking point and not talk for 30+ minutes. Makes it a lot easier to learn.

  3. Towhid Kashem

    Which JS console plugin are you using? I would love to just be able to run javascript inside of VS code like that

  4. Abraham Hsu

    Hey, great tutorial! I'm having HUGE HEADACHE trying to solve this assignment. In an online made up store, the following are product SKU names, the quantity of each item ordered, and the location of the item in the warehouse. It needs to output the product SKU name and quantity only.
    INPUT:

    HL-OH-F1504P-CH-AM (1) <br>2EX2-4 / 2G-7</br> HID-LED-9004-LB (2) <br>2M-2_5</br>FMK (1) <br>2ND FL</br>

    OUTPUT:

    HL-OH-F1504P-CH-AM (1)
    HID-LED-9004-LB (2)
    FMK (1)

    I'm so lost as how to delete all the fluff in between the product SKU's!!! Can anyone help?

  5. MADPURO

    Beau, you say “remember. Use your code for good.” Can you share your goodest (not a word) code that you’ve created? 😀
    Thanks for these videos as well.

  6. priya nandamuri

    can i use.. document.write(arr); instead of console.log(arr);????????

  7. TheLeo328

    Hey Beau, this is a great video! Thank You! I would suggest for future videos, comment out the previous calls so its easier to follow. Its much easier to follow when you're returning/logging just one answer instead of everything prior.

  8. Hitta

    how do you get the sublime console?

  9. Osama

    so how to use this playlist? btw thank you

  10. ronP __

    what a great video! this is basically hours worth of info in <10min…

  11. Beau, sort method has not parameters or a function parameter.
    Syntax:
    arr.sort()
    arr.sort(compareFunction)
    According to Mozilla website.
    Thanks.

  12. Dennis G D

    it's a bit alarming that some of these methods are modifying data (possibly w/out the programmer knowing) … how do I know which methods will mod the data?… I thought data was to be immutable… e.g. input > function > output… it's supposed to be a one way street, right? How do I make sure that my functions are not modifying my orig. data?

  13. Hi, a camper here.Can you tell me what tool are you using to console out? Is it a web? An editor? Thanx!

Leave a Reply