You are, of course, correct.
If you "get" the logic, maybe you can "guess" that what I really had in mind was to make the loop condition (displayWord not equal to secretWord) since displayWord is...
Type: Posts; User: Zaphod_b
You are, of course, correct.
If you "get" the logic, maybe you can "guess" that what I really had in mind was to make the loop condition (displayWord not equal to secretWord) since displayWord is...
Instead of using the indexOf function (that would require repeats each time you find a guessed character in the secret word), why not just step through the secret word, testing each character to see...