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

Tell us what’s happening:

Use const and arrow syntax to create an empty deleteSong function and pass in id as a parameter.

const deleteSong = ()=>  {
  id
}

i have tried entering the id parameter within and out of the function for this challenge the code is not passing


your deleteSong function should take an id parameter.

Your code so far

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

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

Challenge Information:

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

Hi @email2shaheer

As a parameter means before the curly brace.

Happy coding

const deleteSong = ()=>  (id) {
  id
}

still not passing

You don’t need to create an extra set of round brackets.
You can use the one before the arrow notation.

Happy coding

If you need help with syntax, look to line 88 of this project.
You created a similar function there, and that will help you fix your syntax issues

const deleteSong = ()=>  id {
  
}

still not passing

You are still using the wrong syntax.
That is why the test is not passing.

Did you look at line 88 of this project?

Can you see how that is different from what you are trying to do?

ok i checked line 88 ur solution has worked thank u