Tell us what’s happening:
Hi! Is this bugged? I tried with this code snippet and it doesn’t pass the test.
Your code so far
/* file: script.js */
// User Editable Region
taskForm.addEventListener('submit', (e) => {
e.preventDefault();
const dataArrIndex = taskData.findIndex((item) => item.id === currentTask.id);
const taskObj = {id : titleInput.value.toLowerCase()};
console.log(taskObj);
});
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Challenge Information:
Build a Todo App using Local Storage - Step 14