Its asking that “You should move the dataArrIndex variable into the addOrUpdateTask function.”
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const addOrUpdateTask = ()=>{
if (dataArrIndex === -1) {
taskData.unshift(taskObj);
}
// 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/131.0.0.0 Safari/537.36
Challenge Information:
Learn localStorage by Building a Todo App - Step 36
You are going to remove almost an entire block of code from the bottom of the file plus what you have already. From what I can tell it’s just a matter of cut, copy and paste, after creating the arrow function.