Learn localStorage by Building a Todo App - Step 52

Tell us what’s happening:

It keeps telling me my code is incorrect with the hint “Your formInputValuesUpdated variable should check if titleInput.value is not equal to currentTask.title.”. I feel like in my code I do that. Can someone see what I’m doing wrong here?

Your code so far

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

/* file: styles.css */

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

const formInputValuesUpdated = () => {
  titleInput.value !== currentTask.title || 
  dateInput.value !== currentTask.date || 
  descriptionInput.value !== currentTask.description;
  }

// 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/125.0.0.0 Safari/537.36 Edg/125.0.0.0

Challenge Information:

Learn localStorage by Building a Todo App - Step 52

Remove the anonymous function declaration around the condition expression.

I removed it, but it still gives the same error…

Make sure

const formInputValuesUpdated =

and condition expression are on the same line.

1 Like

Thanks, it works now!