Tell us what’s happening:
I’m fairly sure this is valid. Why is it not- is there another way of doing IF statements that I should be using?
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const dataArrIndex = taskData.findIndex((item) => {
if (item.id === currentTask.id) {
};
});
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Challenge Information:
Build a Todo App using Local Storage - Step 11
https://www.freecodecamp.org/learn/full-stack-developer/workshop-todo-app/step-11