From 083b03c283cbd2bf16686add268fd60f9f9a6854 Mon Sep 17 00:00:00 2001 From: v-i-k-a-s <38248335+v-i-k-a-s@users.noreply.github.com> Date: Thu, 4 Jan 2024 07:38:59 +0530 Subject: [PATCH] fix(curriculum): updating description and hint text for Todo App project step 58 (#52928) --- .../65004ba581d03d1d5628b41c.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/65004ba581d03d1d5628b41c.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/65004ba581d03d1d5628b41c.md index 08ced41b63f..efb4625e764 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/65004ba581d03d1d5628b41c.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-localstorage-by-building-a-todo-app/65004ba581d03d1d5628b41c.md @@ -9,7 +9,7 @@ dashedName: step-58 You've retrieved the task item(s) now, but they still don't reflect in the UI when the page loads. However, they appear when you add a new task. -To fix this issue, you can check if there's a task inside `taskData`, and then call the `updateTaskContainer()`. +You can check if there's a task inside `taskData` using the length of the array. Because `0` is a falsy value all you need for the condition is the array length. Check if there's a task inside `taskData`, then call the `updateTaskContainer()` inside the `if` statement block. @@ -17,7 +17,7 @@ With that, you've completed this project. # --hints-- -You should create an `if` statement with the condition `taskData.length`. +You should create an `if` statement with `(taskData.length)` as the condition. As a reminder, `0` is a falsy value. ```js assert.match(code, /if\s*\(taskData\.length\)\s*\{\s*/)