A

Admin • 833K Points
Coach

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

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

Explanation by: Admin

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.