What happens in the following JavaScript code snippet? var js = 0; while (js < 10) { console.log(js); js++; }

Question:What happens in the following JavaScript code snippet? var js = 0; while (js < 10) { console.log(js); js++; }

1.An exception is thrown

2.The values of js are logged or stored in a particular location or storage c)

3.The value of js from 0 to 9 is displayed in the console

4.An error is displayed


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!