πŸ“Š JavaScript
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) 136

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
246
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Indresh Gehalot
Publisher
πŸ“ˆ
85%
Success Rate