diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/64fae068bcdc9c805bd8399e.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/64fae068bcdc9c805bd8399e.md index afaa870dadf..f70f86e2c65 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/64fae068bcdc9c805bd8399e.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/64fae068bcdc9c805bd8399e.md @@ -13,16 +13,16 @@ To enable editing and deleting for each task, add an `onclick` attribute to both # --hints-- -You should add `onclick="editTask(this)"` as the first attribute of the edit button. +You should add `onclick="editTask(this)"` to your edit button. ```js -assert.match(code, /Edit<\/button>/) +assert.match(code, /]*onclick\s*=\s*("|')editTask\(this\)\1)[^>]*>Edit<\/button>/); ``` -You should add `onclick="deleteTask(this)"` as the first attribute of the delete button. +You should add `onclick="deleteTask(this)"` to your delete button. ```js -assert.match(code, /Delete<\/button>/) +assert.match(code, /]*onclick\s*=\s*("|')deleteTask\(this\)\1)[^>]*>Delete<\/button>/); ``` # --seed--