Tell us what’s happening:
Not sure what is going wrong here, all the details seem to be placed in the right order…
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const songsHTML = (array.map()) => {};
// 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 18
ILM
December 6, 2024, 5:26pm
2
array.map()
is not a valid function parameter. Are you sure you are writing it in the right place?
This is what the tutor prompt says Start by using const
to declare a variable named songsHTML
and assign it array.map()
ILM
December 6, 2024, 5:42pm
4
it says to assign array.map()
not to write other things or put it in an additiona function
It accepts it but the arrow sign =>
still has a red line under indicating it is not valid in the terminal?
ILM
December 6, 2024, 5:52pm
6
is that needed to assign a value to a variable?
as shown in the prompt, but the terminal draws a red line under
ILM
December 6, 2024, 5:58pm
8
what prompt? you don’t need an arrow to assign a value to a variable, the arrow is needed when you create arrow functions, which in this case is not requested
I really hope the new curriculum is going to help you, because like this you will keep getting more and more confused