A
Q. Which one of the following options is the correct output for the given code of JavaScript?
Code:
functionfun()
{
var a=1;
var b=2;
return a*b;
}
document.write(fun());
{
var a=1;
var b=2;
return a*b;
}
document.write(fun());
- Correct Answer - Option(A)
- Views: 18
- Filed under category JavaScript
- Hashtags:
Discusssion
Login to discuss.