I

Indresh Gehalot • 10.11K Points
Tutor II

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);  
    }  
  • (A) 136
  • (B) 123
  • (C) 013
  • (D) 01

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.