Skip to content

Commit 50598ef

Browse files
Update NAN_Infinity_SilentError.js
1 parent 5e6156c commit 50598ef

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

NAN_Infinity_SilentError.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ a = 10/0;
6363
Infinity
6464
isFinite(a)?a:0; // Handling error...
6565
0
66-
10 + "20"
66+
67+
10 + "20"
6768
'1020'
68-
10 + parseInt("20");
69+
10 + parseInt("20"); // Convert String into an Integer (Number)
6970
30
70-
10 + parseFloat("20.99");
71+
10 + parseFloat("20.99"); // Convert String into an Float (Number)
7172
30.99

0 commit comments

Comments
 (0)