A

Admin • 833.24K Points
Coach

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);
  • (A) 5
  • (B) 555
  • (C) 55
  • (D) Error
  • Correct Answer - Option(C)
  • Views: 29
  • 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.