Very confusing. It is asking me to create a FUNCTION by using CONST. But CONST is what makes a variable… and FUNCTION is what creates a FUNCTION.
Using CONST does not pass. I did not forget about the ‘id’ needing to be the argument, I am just trying to figure out what the correct syntax is. I have not seen a CONST FUNCTION before but it seems that it what it is asking for.
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
function playSong() {};
// 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/122.0.0.0 Safari/537.36
Challenge Information:
Learn Basic String and Array Methods by Building a Music Player - Step 35
Ah, solved in seconds once being told it is looking for an arrow function.
Below is what it asks of me:
It does not mention that it is looking for me to create an arrow function, just a function. Quite a few steps have been misleading and unclear in this section.