diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/660d8ca387f989d6b25a3343.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/660d8ca387f989d6b25a3343.md index 30de1646e48..b5693a9c5e5 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/660d8ca387f989d6b25a3343.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/660d8ca387f989d6b25a3343.md @@ -16,13 +16,13 @@ To see the new result, click on the `"Add New Task"` button. Then add a title an Your `taskObj` should have an `id` property. ```js -assert.match(code, /const\s+taskObj\s*=\s*\{\s*id/) +assert.match(code, /const\s+taskObj\s*=\s*\{\s*("|'|)id\1/) ``` -Your `id` property should have the value of the `titleInput.value`. +The `id` property of your `taskObj` object should be set to `titleInput.value`. ```js -assert.match(code, /const\s+taskObj\s*=\s*\{\s*id:\s*titleInput\.value/) +assert.match(code, /const\s+taskObj\s*=\s*\{\s*("|'|)id\1\s*:\s*titleInput\.value\s*,?\s*\}/) ``` # --seed--