A

Admin • 828.03K Points
Coach

Q. What will the following code print?

Code:
let a;
console.log(a);
  • (A) null
  • (B) undefined
  • (C) 0
  • (D) ReferenceError
  • Correct Answer - Option(B)
  • Views: 6
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
A declared but uninitialized variable is 'undefined'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.