Intro to JavaScript Arrays Instructor Guide

You Do solution - books

Here’s a possible solution to the main You Do section:

const books = [];

books.push('The Shining', 'Pride and Prejudice');

console.log(books[1]);

books[1] = 'Dune';

books.forEach((book) => console.log(book));

General tips


🏗️ Under Construction

We are constantly working to improve our resources for instructors and students.

Have something to contribute to this Instructor Guide? Let us know.