Q. What will the following return?

Code:
console.log(typeof null);
  • (A) null
  • (B) object
  • (C) undefined
  • (D) function
πŸ’¬ Discuss
βœ… Correct Answer: (B) object
Explanation: typeof null returns 'object' (a long-standing bug in JS).
Explanation by: Chandani
typeof null returns 'object' (a long-standing bug in JS).

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
91
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
98%
Success Rate