What would be the output of the following code snippet?
@Yomesh Gupta
var x = 1;
for (; x < 6; x += 2) {
x = x * x;
}
console.log(x);
Option 1
11
Option 2
25
Option 3
1
Option 4
10
var x = 1;
for (; x < 6; x += 2) {
x = x * x;
}
console.log(x);
11
25
1
10