Skip to content

Commit 4724cd2

Browse files
feat: update global functions
1 parent 23f4db4 commit 4724cd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

part1 (Basics)/13_global.functions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Converts to number, if possbile.
7171
*/
7272
Number("123"); // 123
7373
Number("abc"); // NaN
74+
Number("10a"); // NaN
7475
Number(true); // 1
7576
Number(false); // 0
7677

@@ -103,5 +104,5 @@ INFO: Infinity, NaN, undefined
103104
These are global values, not Functions
104105
*/
105106
console.log(Infinity); // Infinity
106-
console.log(NaN); // NaN
107+
console.log(NaN); // NaN
107108
console.log(undefined); // undefined

0 commit comments

Comments
 (0)