Being a primitive value has nothing to do with being of type 'object'. Belonging to a type is about how things are categorized, and is essentially arbitrary.
Mozilla's documentation is not the standard for Javascript (ecmascript) - it talks about mozilla's implementation.
To understand javascript you need to look at the ecmascript standard.
To understand javascript you need to look at the ecmascript standard.
ecma-international.org/publication...