// 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.