fix(curriculum): change toFix to toFixed in lesson content (#61843)

Co-authored-by: Sanchit Kathpalia <sanchitkhthpalia.com>
This commit is contained in:
Sanchit Kathpalia
2025-08-16 23:44:47 +05:30
committed by GitHub
parent 0741793ceb
commit d48ddcd59e

View File

@@ -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");