mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix(curriculum): updating description and hint text for Todo App project step 58 (#52928)
This commit is contained in:
+2
-2
@@ -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*/)
|
||||
|
||||
Reference in New Issue
Block a user