mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-25 23:01:26 -05:00
fix(curriculum): change toFix to toFixed in lesson content (#61843)
Co-authored-by: Sanchit Kathpalia <sanchitkhthpalia.com>
This commit is contained in:
committed by
GitHub
parent
0741793ceb
commit
d48ddcd59e
@@ -7,7 +7,7 @@ dashedName: what-is-the-number-constructor-and-how-does-it-work-for-type-coercio
|
||||
|
||||
# --description--
|
||||
|
||||
The `Number()` constructor is used to create a number object. The number object contains a few helpful properties and methods like the `isNaN` and the `toFix` method. Here's an example using the `Number()` constructor with the `new` keyword:
|
||||
The `Number()` constructor is used to create a number object. The number object contains a few helpful properties and methods like the `isNaN` and the `toFixed` method. Here's an example using the `Number()` constructor with the `new` keyword:
|
||||
|
||||
```js
|
||||
const myNum = new Number("34");
|
||||
|
||||
Reference in New Issue
Block a user