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

Tell us what’s happening:

Please help me find what is wrong.
Start by accessing the #playlist-songs, #play, and #pause elements with the getElementById() method. Assign them to variables playlistSongs, playButton and pauseButton respectively.

function getElementById()
{
const playlistSongs = document.getElementById(“playlist-songs”);
const playButton = document.getElementById(“play”);
const pauseButton = document.getElementById(“pause”);
}
error: You should have a variable called playlistSongs

Your code so far

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

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

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

// User Editable Region
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36

Challenge Information:

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

They did not ask you to create a function?