DEV Community

Discussion on: JavaScript Data Types

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Not sure whether it is preferred, but typeof doesn't really need brackets. Also, it is classified as an operator.

Another curious thing is object. You know, that Object.create(null) vs Object.create({}).

Also, typeof null === 'object'.