Tell us what’s happening:
Can anyone please help me on this its a TODO function project task number 51 . Looks like the code is fine I checked it on the chatGPT to but its says code does not pass
closeTaskFormBtn.addEventListener(‘click’, () => {
const formInputsContainValues = titleInput.value !== “” || dateInput.value !== “” || descriptionInput.value !== “”;
// Check if the user made changes while trying to edit a task
const formInputValuesUpdated = titleInput.value !== currentTask.title ||
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
Challenge Information:
Learn localStorage by Building a Todo App - Step 52