O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

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...


Cover of Head First JavaScript Programming


What is type null?