mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-16 22:00:28 -05:00
fix(curriculum): convert numbers to strings in lecture-working-with-numbers-and-common-number-methods (#64886)
This commit is contained in:
@@ -119,7 +119,7 @@ console.log((num1 + num2).toFixed(2));
|
||||
|
||||
## --answers--
|
||||
|
||||
`80.23`
|
||||
`"80.23"`
|
||||
|
||||
### --feedback--
|
||||
|
||||
@@ -127,11 +127,11 @@ Remember that `toFixed()` rounds the result based on the third decimal digit.
|
||||
|
||||
---
|
||||
|
||||
`80.24`
|
||||
`"80.24"`
|
||||
|
||||
---
|
||||
|
||||
`80.25`
|
||||
`"80.25"`
|
||||
|
||||
### --feedback--
|
||||
|
||||
@@ -139,7 +139,7 @@ Remember that `toFixed()` rounds the result based on the third decimal digit.
|
||||
|
||||
---
|
||||
|
||||
`80.26`
|
||||
`"80.26"`
|
||||
|
||||
### --feedback--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user