Q. What is the output of typeof null in JavaScript?

  • (A) object
  • (B) null
  • (C) undefined
  • (D) boolean
πŸ’¬ Discuss
βœ… Correct Answer: (A) object
Explanation: typeof null returns 'object' due to a long-standing bug in JavaScript.
Explanation by: Mr. Dubey
typeof null returns 'object' due to a long-standing bug in JavaScript.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
71
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate