Introduction to JavaScript Arrays

Offered By
Coursera Project Network
In this Guided Project, you will:

Explain the advantages of repetition programming.

Create and populate an array with JavaScript code.

Access elements from an array using JavaScript.

Clock2 hours
IntermediateIntermediate
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

By the end of this project you will understand how data is stored in and retrieved from arrays in JavaScript. You will use the Notepad++ editor to write JavaScript code to work with arrays. In addition to creating and populating an array, you will learn multiple methods of accessing data from arrays using JavaScript code. Arrays are a great way to store multiple values of a similar type and are commonly used in programming. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Skills you will develop

  • For/Of Loop
  • Arrays
  • Access Array Elements
  • Data Structure
  • JavaScript

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Compare examples of variables with simple values and variables that contain arrays.

  2. Write the JavaScript code to create an array and populate the array with elements.

  3. Use element indexes to access each of the elements in a JavaScript array and display them on a web page.

  4. Write a JavaScript for loop with a length property to read through the elements in an array and display them on a web page.

  5. Code a JavaScript for/of loop that reads through the elements in an array and displays them on a web page.

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.