diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/64ec9b10356c2d8aa05d9ce1.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/64ec9b10356c2d8aa05d9ce1.md index eb19b0f9269..cb41f4833d6 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/64ec9b10356c2d8aa05d9ce1.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/64ec9b10356c2d8aa05d9ce1.md @@ -14,8 +14,8 @@ After adding the task to the page, you should close the form modal to view the t You should use `classList` to toggle the class `hidden` on `taskForm`. ```js -const splitter = code.split("taskData.forEach") -assert.match(splitter[1], /taskForm\.classList\.toggle\(('|")hidden\1\)/) +const splitter = code.split("taskData.forEach")[1].split("});") +assert.match(splitter[0], /taskForm\.classList\.toggle\(('|")hidden\1\)/) ``` # --seed-- @@ -329,9 +329,10 @@ taskForm.addEventListener("submit", (e) => { `) } ); + --fcc-editable-region-- + + --fcc-editable-region-- }); ---fcc-editable-region-- ---fcc-editable-region-- ```