Q. What will be the output of: console.log(typeof null);

  • (A) null
  • (B) undefined
  • (C) object
  • (D) boolean
πŸ’¬ Discuss
βœ… Correct Answer: (C) object
Explanation: In JavaScript, typeof null returns 'object' due to a legacy bug.
Explanation by: Chandani
In JavaScript, typeof null returns 'object' due to a legacy bug.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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