Learn Basic String and Array Methods by Building a Music Player - Step 3

Tell us what’s happening:

Task is to create an empty allSongs array.What is wrong?

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

let allSongs="";

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0

Challenge Information:

Learn Basic String and Array Methods by Building a Music Player - Step 3

Hi. You’ve got an empty string there, not an empty array.

@zm17jaga You are currently initializing all songs as a string. You need to change it to … to convert it into an array.

Hi. We are trying to reduce the number of spoiler answers on the site. We try to guide the posters in the first instance to see if they can work it out themselves. I have edited your post to remove the answer.