Javascript - Null

> (World Wide) Web - (W3|WWW) > Javascript (Js|ECMAScript) > ECMAScript - Grammar Standard

1 - About

null is a javascript data type that is unfortunately reported as an object by the typeof operator.

Advertising

3 - typeof

Confusingly, typeof reports the type of null as “object”, but the ECMA-Script standard describes it as a distinct type.

console.log("null has the type "+typeof(null));

4 - Documentation / Reference

web/javascript/es/null.txt · Last modified: 2019/02/16 17:40 by gerardnico