A

Admin • 828.03K Points
Coach

Q. What will the following return?

Code:
console.log(typeof null);
  • (A) null
  • (B) object
  • (C) undefined
  • (D) function
  • Correct Answer - Option(B)
  • Views: 7
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
typeof null returns 'object' (a long-standing bug in JS).

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.