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

Treehouse

JavaScript Arrays Course (How To)

via Treehouse

Overview

Arrays provide a way to store multiple pieces of information. An array is a list of values: numbers, strings, boolean values, or even other arrays. In this course, you'll learn the basics of using arrays as data structures.

Syllabus

Store Multiple Values in an Array

Learn the basics of arrays, a common data structure for holding multiple pieces of information.

Chevron 11 steps
  • What is an Array?

    4:35

  • Create an Array

    2 objectives

  • Access Elements in an Array

    3:04

  • Access Array Elements by Index

    2 objectives

  • Review Array Basics

    5 questions

  • Add Elements to an Array

    4:10

  • Add Elements to an Array

    2 objectives

  • Remove Elements From an Array

    4:17

  • Remove Elements From an Array

    2 objectives

  • Copy and Combine Arrays with the Spread Operator

    7:18

  • Review Adding, Removing, and Copying Array Elements

    6 questions

Loop Through Arrays

Learn how to access and manipulate items in an array using loops.

Chevron 8 steps
  • Using a 'for' Loop to Iterate Over an Array

    3:49

  • Loop Through an Array

    6:04

  • Loop Through an Array

    1 objective

  • Useful Array Methods

    4:15

  • Array Methods

    2 objectives

  • Search for a Value in an Array

    3:45

  • Locate and Join Array Elements

    4:57

  • Review Array Methods and Iterating

    5 questions

Multidimensional Arrays

You can place an array within an array, even create an array that contains nothing but other arrays. An array inside an array is called a "multidimensional array".

Chevron 7 steps
  • What is a Multidimensional Array?

    3:29

  • Create a Multidimensional Array

    5:32

  • Create a Multidimensional Array

    3 objectives

  • Build a Quiz Challenge

    1:48

  • Build a Quiz Challenge – One Solution

    5:10

  • Improve the Quiz – One Solution

    4:28

  • Review JavaScript Arrays

    5 questions

Taught by

Guil Hernandez

Reviews

Start your review of JavaScript Arrays Course (How To)

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.