Build a Todo App using Local Storage - Step 14

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

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-todo-app/660d8d7bb2424cd7cdf90ec1.md at main · freeCodeCamp/freeCodeCamp · GitHub

hello!

please try removing the space between id and :

Or you can right click>Format Document.