Javascript Do While loop using a String

I FIGURED IT OUT Y’ALL!!!

It is var secret="javascript"; var response; do{ response = window.prompt("Guess the secret word. Hint: The language this course uses."); } while(response!=secret); alert("You guessed it!");

Walks away with smug grin I was trying to make this so complicated!

1 Like