Learn localStorage by Building a Todo App - Step 12

Tell us what’s happening:

I can’t get past the error “You should use const to create a taskObj”.

Your code so far

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

/* file: styles.css */

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

const taskObj = {
    id: `${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/123.0.0.0 Safari/537.36

Challenge Information:

Learn localStorage by Building a Todo App - Step 12

Hi there. You are very very close to completing this lesson. All you need to do is close your taskObj object. You created an opening brace and forgot a closing one.

Happy coding. :slight_smile: