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

Tell us what’s happening:

f the function body consists of a single expression, you don’t need the curly braces and the return keyword. This is called an implicit return:

const addArrow = (a, b) =>  a + b;
console.log(addArrow(3, 5)); // Output: 8

Use the arrow function syntax to create a renderSongs function that takes in array as its parameter.

Here is my code:
As you can see the parameter “()” has the empty array “” inside, yet is says that the parameter should be an empty array… I don’t understan what I’m doing wrong honestly.

Your code so far

const renderSongs = () => {

}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0

Challenge Information:

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

An empty array can’t be used as a parameter. A parameter looks like a variable name.

2 Likes

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