Learn localStorage by Building a Todo App - Step 43

Tell us what’s happening:

hey guys, I’m stuck here.

Create a dataArrIndex variable and set its value using the findIndex() method on the taskData array. Pass item as the parameter for the arrow callback function, and within the callback, check if the id of item is equal to the id of the parentElement of buttonEl.

Your code so far

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

/* file: styles.css */

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

const deleteTask = (buttonEl) => {
const dataArrIndex=taskData.findIndex(item)=>item.id === buttonEl.parentElement.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/127.0.0.0 Safari/537.36

Challenge Information:

Learn localStorage by Building a Todo App - Step 43

you have a syntax error here.
you are missing one ( to the right of the word item

(and one more missing parenthesis after that which you can find yourself?)

it says don’t use curly braces, which is why I omitted those, and also where am I missing one? as it asks to put item as the parameter.

curly braces are { } not parenthesis ( )

found it. thanks!
to make it more clear for those reading afterwards. the index() is the entire callback function!