A

Admin • 833K Points
Coach

Q. What will be the output of the below code ?

Code:
var package;
console.log("Package: " + package)
console.log("Amount: " + amount);
  • (A) Package: undefined; An ReferenceError is thrown saying amount is not defined;
  • (B) Package: null; An ReferenceError is thrown saying amount is not defined;
  • (C) Package: undefined; Amount: undefined;
  • (D) Package: null; Amount: null;
  • Correct Answer - Option(A)
  • Views: 26
  • Filed under category JavaScript
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.