Learn localStorage by Building a Todo App - Step 13

Tell us what’s happening:

I need help figuring out this problem, as it says I should have the object of titleInput.value?

Your code so far

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

/* file: styles.css */

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

  const taskObj = {
  id:`${titleInput.value}`
  };

// 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 13

1 Like

You don’t need to use a template literal here. You can simply add the variable directly as the value of the id property.
Template literals are more useful when you’re trying to interpolate variables or expressions into strings.

1 Like