Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Arrays in JavaScript - Arrays Tutorial for Beginners

Dave Gray via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Dive into a comprehensive tutorial on Arrays in JavaScript, covering everything from basic array creation and modification to advanced concepts like multidimensional arrays. Learn essential array methods including push(), pop(), unshift(), shift(), splice(), slice(), reverse(), join(), and concat(). Explore how to reference array elements, handle array length, and use the spread operator for array manipulation. Gain practical knowledge through a sports store example demonstrating the use of nested arrays. Perfect for beginners looking to master this fundamental data structure in JavaScript programming.

Syllabus

Intro
Arrays are Data Structures
How to create an array
How to add elements to an array
Reference an array and view it in the console
Length property of an array
Reference the last element in an array
Reference any item in an array by position
Using the push method to add elements to an array
Using the pop method to remove elements from an array
Using the unshift method to add elements to an array
Using the shift method to remove elements from an array
Do the element positions change in the array?
Referencing an element that does not exist
How to remove an element from the middle of an array
What happens when you delete an element from an array
Using the splice method to remove, replace, and insert elements
The slice method
The reverse method
The join method
The split method is a string method that creates a new array
The concat method
Using the spread operator to combine arrays
Multidimensional arrays / Nested arrays: Sports Store example
Referencing an element in a single dimension array
Referencing an element in a two dimensional array
Referencing an element in a three dimensional array

Taught by

Dave Gray

Reviews

Start your review of Arrays in JavaScript - Arrays Tutorial for Beginners

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.