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

Tell us what’s happening:

I am so confused on the wording of the tasks.Please explain

Your code so far

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

/* file: styles.css */

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

const deleteSong = (id) => {userData.songs = userData?.songs.filter((song) => {song.id !== id;});
  
};

// 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/126.0.0.0 Safari/537.36

Challenge Information:

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

can you be more precise on what parts of the instructions are confusing for you?

Hi @nastyabenoist

Your filter method should implicitly return song.id !== id .

Here is an article on implicit return you may find helpful.

You also have an extra semi-colon in your code.

Happy coding

2 Likes

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