I am stuck on this problem from NYCDA.
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.
You should use prompt within the while loop to change the value of user, this helps avoid an infinite loop.
So far I got this, but it says there should be a while loop in my code I am lost in this part.
var word = prompt(‘Enter a word!’);