← BYTES
JavaScript·Starter·Ref: 3.1.1
What does `typeof null` return in JavaScript?
Have a question about this video? Mention reference 3.1.1 when you contact us.
a."null"
b."undefined"
c."boolean"
d."object"
A famous, long-standing JS quirk from the language's very first implementation -- typeof null returns "object" even though null is a primitive, not an object. It's never been fixed because doing so would break existing code that (knowingly or not) relies on it.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES311#JavaScript