Javascript Looping

Javascript Looping
0

#1

Please only change below the second comment, reset the editor if you changed the code above it’.

After doing a while loop, what do they mean by changing the second comment and reset the editor?


#2

can you link to the page you are working on?


#3

#4

yeah. just click the reset your code before you begin.
only write/edit the code below the bottom comment.

Write a while loop to prompt the user to guess a word (stored in a variable named word. Then exit the while loop only if the word entered is NYCDA.

while (condition)
{
do something
if (NYCDA condition)
{
break;
}
}

You should use prompt within the while loop to change the value of user, this helps avoid an infinite loop.


#5

Thank you so much JuggernOtt81!!