通過創建 Todo 應用程序學習 localStorage - Step 35

告訴我們發生了什麼:

看不懂這一題在說什麼,不是將符合條件的代碼,移入到AddOrUpdateTask =()=>{}裡面嗎???

到目前爲止你的代碼

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

const addOrUpdateTask = () => {

 if (dataArrIndex === -1) {
    taskData.unshift(taskObj);
  }
};


// User Editable Region

你的瀏覽器信息:

用戶代理是: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36 Edg/136.0.0.0

挑戰信息:

通過創建 Todo 應用程序學習 localStorage - Step 35

Hello @midosoft

For this step you need to move three items into the function.

Happy coding

1 Like

It turns out the code needed to be “move” from somewhere else. Thank you for your help! :innocent:

1 Like