Just to cover every detail, did we say what the type of null is?
A: A quick way to find out is by using the typeof operator on null. If you do that you’ll get back the result “object”. And this makes sense from the perspective that null is used to represent an object that isn’t there. However, this point has been heavily debated, and the most recent spec defines the type of null as null. You’ll find this an area where yo...
- 7. Types, Equality, Conversion and All That Jazz: Serious types
- Publisher: O'Reilly Media, Inc.
- Released: March 2014
What is type null?