Tell us what’s happening:I do arrow function but it didn’t work
need help to this kind of the problem guys. please
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
(sortSongs) => {
}
// 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/137.0.0.0 Safari/537.36
Challenge Information:
Learn Basic String and Array Methods by Building a Music Player - Step 27
Teller
June 23, 2025, 6:29am
2
Hi @christianbernardino5
Take a look elsewhere in your JavaScript file where you created a function.
Happy coding
damn that’s 100% helpful. thanks a lot
1 Like
ILM
June 23, 2025, 8:30am
4
do you still need help with creating a function?
1 Like
yeah bro. please provide some clear answer thank you so much
ILM
June 23, 2025, 1:14pm
6
you need to create a variable sortSongs
and assign an arrow function to it
you need to remember that arrow functions can’t have a name like the functions declared with the function
keyword, so you need to use a variable
In your code renderSongs
is also an arrow function and there is an arrow function in your map()
method as well. You can use those examples as a reminder.
The instructions also do not specify a parameter/argument name, so you can leave the parentheses blank.