0 votes
in JavaScript by
What will happen, if the following JavaScript code is executed?

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

1 Answer

0 votes
by

Answer: C

Reason: The function "console.log ()" used in the above function is one of the pre-defined functions of JavaScript. It takes values as arguments passed to it, and displays that value in arguments inside the console when the code is executed.

...