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

Tell us what’s happening:

i dont know what could be wrong but i cant get this code to pass i went to the next project to double check my work and as far as i can tell its right but i keep getting the hint you should use the get element by id method wich as you can see in the above code i did so im thinking there is some kind of punctuation or spelling error but i cant see one

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/131.0.0.0 Safari/537.36

Challenge Information:

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

Hi there!

You have a space after getElementById

thanks would have never seen that

1 Like