Change Password
Logout
Update Question
View
Question
<p dir="ltr">What happens in the following JavaScript code snippet?</p> <p dir="ltr">var js = 0;</p> <p dir="ltr">while (js < 10) </p> <p dir="ltr">{</p> <p dir="ltr"> console.log(js);</p> <p dir="ltr"> Js++;</p> <p dir="ltr">}</p> <p> </p>
Option 1
<p>An exception is thrown</p>
Option 2
<p>The values of js are logged or stored in a particular location or storage</p>
Option 3
<p>The value of js from 0 to 9 is displayed in the console</p>
Option 4
<p>An error is displayed</p>
Correct Answer
Option 1
Option 2
Option 3
Option 4
Submit
Design and Developed by
O7Solutions