A

Admin • 825.56K Points
Coach

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

Code:
num1=5;
function cal() {
num1=10;
num2=5;
num3=num2*num1;
console.log(num3);
}
cal();
  • (A) 25
  • (B) 50
  • (C) 100
  • (D) Error cannot have more than one variable with same name
  • Correct Answer - Option(B)
  • Views: 7
  • 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.