Learn localStorage by Building a Todo App - Step 18

Tell us what’s happening:

There’s only one answer for this code in the forum as far as I can see. And it doesn’t go into that much detail. What is wrong with this code, it seems to be what the question is asking for…

Your code so far

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

/* file: styles.css */

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

    id: `${titleInput.value.toLowerCase().split(' ').join('-')}-${Date.now('-')}`,  

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

Challenge Information:

Learn localStorage by Building a Todo App - Step 18

Remove the Hyphen here.