scrimba
The JavaScript Language [JSL] Module 5 (Arrays)
Array We Go!
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Array We Go!
by
AboutCommentsNotes
Array We Go!
by
Expand for more info
index.js
run
preview
console
// Create a simple web application to display your favorite movies using JavaScript arrays. This challenge will help you understand how to store and access data in arrays.

// Step 1: Create an array named myFavoriteMovies and populate it with the titles of five movies you enjoy.
let myFavoriteMovies = [
"Movie 1",
"Movie 2",
"Movie 3",
"Movie 4",
"Movie 5"
];

// Step 2: Access the first and the last movie from your myFavoriteMovies array.


// Display the first and the last movie on the web page.
function displayMovies() {
// Use document.getElementById to find the movies div.


// Create and append the first movie title.


// Create and append the last movie title.

}

// Call the displayMovies function to display the movies.
displayMovies();
Console
/index.html
LIVE