Learn localStorage by Building a Todo App - Step 53

Tell us what’s happening:

const formInputValuesUpdated =
titleInput.value !== currentTask.title ||
dateInput.value !== currentTask.date ||
descriptionInput.value !== currentTask.description;

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

Challenge Information:

Learn localStorage by Building a Todo App - Step 53

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

1 Like

have tried to check if the title,date and description input values they’re equal to
currentTask.title,currentTask.date,currentTask.description.but still the code does not p
ass

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

 const formInputValuesUpdated =
     titleInput.value !== currentTask.title ||
     dateInput.value !== currentTask.date ||
     descriptionInput.value !== currentTask.description;

  

// User Editable Region

That code block is correct. You may have modified your other part of code. Reset and try again.

1 Like

thankyou! let me do it

I have the same problem, I’ve been struggling with it for half an hour now, the system is reporting that I made an error, here’s a picture as well.

don’t add unnecessary newlines, it confuses things for the tests

3 Likes

That solved my problem, thank you.

thankyou i will avoid it