Learn localStorage by Building a Todo App - Step 11

Tell us what’s happening:

i don’t know what is wrong. Can somebody help me ?

Your code so far

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

/* file: styles.css */

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

const dataArrIndex=taskData.findIndex((item)=>{item.id === currentTask.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/130.0.0.0 Safari/537.36

Challenge Information:

Learn localStorage by Building a Todo App - Step 11

you need to return the result of the comparison in the callback

You didn’t need to use callback function body {}, implicit return it.

Can you return the comparison implicitly? Without the curly braces.