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

Tell us what’s happening:

I tried to complete the step task, but I can’t pass my code yet!

Your code so far

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

/* file: styles.css */

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

const nextButton = document.getElementById("#next");
const previousButton = document.getElementById("#previous");
const shuffleButton = document.getElementById("#shuffle");

// 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/126.0.0.0 Safari/537.36 Edg/126.0.0.0

Challenge Information:

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

Remove the hashtags #

1 Like

Thank you for your feedback, however I would think that its right to add an # to select an html document using the javascripts DOM model of HTML /Document manipulation. why is this different?

Because you are using getElementById so the function is only looking for id names, therefore no hashtag needed.

1 Like

Thank you very much, that say it all.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.