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
πŸ’¬ Discuss
βœ… Correct Answer: (C) The values of count variable are logged or stored in a particular location or storage

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
268
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Durgesh
Publisher
πŸ“ˆ
86%
Success Rate