Why typeof null is object ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why typeof null is object ?

1st Jan 2023, 8:00 AM
Levi
Levi - avatar
2 Answers
+ 1
Because it is a mistake that was made in the original design of the language.
1st Jan 2023, 8:09 AM
Calviղ
Calviղ - avatar
+ 1
An object can be null. (only) And i think, none other. 🤔
1st Jan 2023, 9:08 AM
Jayakrishna 🇮🇳