A

Admin • 833.24K Points
Coach

Q. What will be the output of typeof null?

  • (A) object
  • (B) null
  • (C) undefined
  • (D) string
  • Correct Answer - Option(A)
  • Views: 26
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

typeof null returns 'object' due to a legacy bug in JavaScript.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.