A
Q. Which one of the following is the possibly correct output for the given JavaScript code?
Code:
functionfun(int length)
{
int a=5;
for(inti=0;i<length;i++)
{
console.log(a);
}
}
fun(2);
{
int a=5;
for(inti=0;i<length;i++)
{
console.log(a);
}
}
fun(2);
- Correct Answer - Option(C)
- Views: 29
- Filed under category JavaScript
- Hashtags:
Discusssion
Login to discuss.