mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-24 23:49:06 +08:00
fix(curriculum): correct typo in step 12 (#64481)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
co-authored by
Huyen Nguyen
parent
43aa311d04
commit
66c31e1071
+1
-1
@@ -19,7 +19,7 @@ isNaN("3.5"); // false
|
||||
|
||||
Update the second condition in your `if` statement to use the `isNaN()` function to check if the value returned by `parseInt()` is `NaN`.
|
||||
|
||||
Also,as we mentioned in step 1 that we are considering only positive numbers, we should add a third condition in `if` statement to check whether the number is less than 0 (i.e negative numbers)
|
||||
Also, as we mentioned in step 1, we are considering only positive numbers, so we should add a third condition to the `if` statement to check whether the number is less than 0 (i.e., negative numbers).
|
||||
|
||||
```js
|
||||
6 < 0; // false
|
||||
|
||||
Reference in New Issue
Block a user