Home / Programming MCQs / JavaScript MCQs / Question

D

Durgesh • 8.64K Points
Tutor III

Q. What will happen, if the following JavaScript code is executed?

Code:
var count =0;  
while (count <10)  
{  
     console.log(count);  
     count++;  
}  
(A) An error is displayed
(B) An exception is thrown
(C) The values of count variable are logged or stored in a particular location or storage
(D) The value of count from 0 to 9 is displayed in the console

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.