Q. Which one of the following is the correct output for the given JavaScript code?
Code:
var a=0;
var b =0;
while (a <3)
{
a++;
b += a;
console.log(b);
}
β
Correct Answer: (A)
136