πŸ“Š JavaScript
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

πŸ‘οΈ
68
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Chandani
Publisher
πŸ“ˆ
99%
Success Rate