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

Tell us what’s happening:

Please tell me what I’m missing here?
The Error keeps saying I should use document.getElementById() to get #playlist-songs element. I’ve looked over it many times and I can’t see what I’m missing.

Your code so far

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

/* file: styles.css */

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

const playlistSongs = document.getElementById("#playlist-songs");
const playButton = document.getElementById("#play");
const pauseButton = document.getElementById("#pause");

// 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/123.0.0.0 Safari/537.36 OPR/109.0.0.0

Challenge Information:

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

Here are the instructions:
Start by accessing the #playlist-songs , #play , and #pause elements with the getElementById() method. Assign them to variables playlistSongs , playButton and pauseButton respectively.

do not use the # in the getElementById call.
(the # is used for querySelector calls)

1 Like