What will be the output of the following JS code snippet?
var a = 1;
var b = 0;
while (a <= 3)
{
a++;
b += a * 2;
print(b);
} Qus
नीचे दिए गए JS कोड का आउटपुट क्या होगा?
var a = 1; var b = 0; while (a <= 3) { a++; b += a * 2; print(b); }
A. 1,2, 3
B. 1,4, 7
C. error
D. 4, 10, 18