2 ms·
null is technically not a keyword in JS[1]. And fun fact, neither are true, false, undefined, NaN, let, of[2], static[3], as[4], from[4], get[5] and set[5]. [1
by lhorie 8y ago
null is technically not a keyword in JS[1]. And fun fact, neither are true, false, undefined, NaN, let, of[2], static[3], as[4], from[4], get[5] and set[5].
[1] https://www.ecma-international.org/ecma-262/9.0/index.html#prod-Keyword https://www.ecma-international.org/ecma-262/9.0/index.html#p...
[2] as in `for (foo of bar) {}`
[3] as in `class { static foo() {} }`
[4] as in `import {foo as bar} from 'baz'`
[5] as in `{get foo() {}, set foo() {}}`