What are the possible ways to create loop in JavaScript? Select all correct options.
Explanation
JavaScript supports different kinds of loops:
for - loops through a block of code a number of times
for/in - loops through the properties of an object
while - loops through a block of code while a specified condition is true
do/while - also loops through a block of code while a specified condition is true

+shivani ahuja Yes, indeed! There was an error in answer options from content providers. Fixed. Thanks a lot :)

2015 Aug 8, 8:11:19 PM

Answer and explanation differ.

2015 Aug 8, 2:57:16 PM

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback