10000 undefined and null · last-endcode/JavaScript-Basics@334a65a · GitHub
[go: up one dir, main page]

Skip to content

Commit 334a65a

Browse files
committed
undefined and null
1 parent ed45f7f commit 334a65a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

27_undefined_null.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// undefined js can't find value for this
2+
// null we are set this value
3+
4+
let name = 20 + null; //20 + 0;
5+
console.log(name);
6+
name = 20 + undefined; //NaN
7+
console.log(name);

0 commit comments

Comments
 (0)
0