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

Tell us what’s happening:

Hi all.
My code :
const playlistSongs = document.getElementById(“playlist-song”);
const playButton = document.getElementById(“play”);
const pauseButton = document.getElementById(“pause”);

console response:
// running tests
You should use document.getElementById() to get the #playlist-songs element.
You should assign the #playlist-songs element to the variable playlistSongs.
// tests complete

what is the reason ?

Your code so far

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

/* file: styles.css */

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

const playlistSongs = document.getElementById('playlist-song');
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

Challenge Information:

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

there is a small difference between the required id and the one you are using, try to see it

Thank you. A small difference became a big problem. :grinning:

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