Which of the following code snippets are not syntax valid JavaScript expressions that create a loop?

Done! Changed! Thanks again, @docahrens

2016 Jun 15, 6:48:05 PM

it is hard to argue that var i = 0; while (true) { i = i } is 'valid' when it is an endless loop that will cause a memory leak and in many cases crash the browser; if you mean is the syntax valid? yes, but you didn't say that...

2016 Jun 11, 5:20:13 PM

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes