Why typeof null is object ? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Why typeof null is object ?

1st Jan 2023, 8:00 AM
Levi
Levi - avatar
2 Réponses
+ 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 🇮🇳