Skip to content

Commit b901de3

Browse files
refactor(Core: primitives): uses global parseInt method instead of Number.parseInt
1 parent 897cb70 commit b901de3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

challenges/primitives.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ const str = "12";
141141

142142
Number(str); // 12
143143
+str // 12
144-
Number.parseInt(str) // 12
144+
parseInt(str) // 12
145145
```
146146

147147
###### Notes
148-
If the number is floating, `Number.parseFloat` can be used
148+
If the number is floating, `parseFloat` can be used
149149

150150
###### References
151151
- https://javascript.info/type-conversions

0 commit comments

Comments
 (0)