In JavaScript, typeof 0
gives 'number'
not 'Number'
, but instanceof 0 Number
.
Would it be accurate to say the canonical names of the built-in types are capitalized, and the lowercase return value of typeof
is a quirk/inconsistency that can't be changed for historical reasons, but would be changed if it could be? Or am I missing something?