We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b21bfa commit 86e203aCopy full SHA for 86e203a
JavaScript/5-undefined-null-NaN.js
@@ -5,8 +5,8 @@ let emptyScalar;
5
console.log({ emptyScalar }, typeof(emptyScalar));
6
7
// null
8
-const enptyObject = null;
9
-console.log({ enptyObject }, typeof(enptyObject));
+const emptyObject = null;
+console.log({ emptyObject }, typeof(emptyObject));
10
11
// NaN
12
let count = NaN;
@@ -18,8 +18,8 @@ console.dir({ count });
18
console.log(Infinity, -Infinity, typeof(Infinity));
19
20
const s = (
21
- enptyObject === null ?
22
- 'enptyObject is null' :
23
- 'enptyObject is not null'
+ emptyObject === null ?
+ 'emptyObject is null' :
+ 'emptyObject is not null'
24
);
25
console.log(s);
0 commit comments