mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-13 21:02:08 +08:00
fix(curriculum): Decimal to Binary spacing (#57223)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
parent
21b433a81b
commit
0f3b75e06c
@ -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 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).
|
||||
|
||||
```js
|
||||
6 < 0; // false
|
||||
|
||||
Loading…
Reference in New Issue
Block a user