A
Q. What will be the output of the following code snippet?
Code:
var a = 1;
var b = 0;
while (a <= 3)
{
a++;
b += a * 2;
print(b);
}
var b = 0;
while (a <= 3)
{
a++;
b += a * 2;
print(b);
}
- Correct Answer - Option(A)
- Views: 24
- Filed under category JavaScript
- Hashtags:
Discusssion
Login to discuss.