A

Admin • 833K Points
Coach

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
  • Correct Answer - Option(C)
  • Views: 24
  • Filed under category JavaScript
  • Hashtags:

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.