Build a Todo App using Local Storage - Step 17

Tell us what’s happening:

Build a Todo Aoo using local storage, step 11
${titleInput.value.toLowerCase().split(" ").join("-")}
what is wrong here?

Your code so far

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

/* file: styles.css */

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

    const taskId = `${titleInput.value.toLowerCase().split(" ").join("-")}`;

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

Challenge Information:

Build a Todo App using Local Storage - Step 17

you can’t use const inside an object, that was a key: value pair in an object, now it’s a syntax error

reset the step to restore the previous code

1 Like

i had forgotten id at the beginning, thank you