A

Admin • 828.03K Points
Coach

Q. What will this code print?

Code:
console.log(typeof undefined === typeof NULL);
  • (A) true
  • (B) false
  • (C) undefined
  • (D) Error
  • Correct Answer - Option(B)
  • Views: 5
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
NULL is not defined (uppercase), so the code throws a ReferenceError.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.