Word Guessing Game

A simple Wordle-style game for learning JavaScript.

Guess the Secret Word

The secret word has 5 letters. Type a 5-letter word and click Check Word.

? ? ? ? ?

Enter a 5-letter word.



Guess History

JavaScript adds one table row each time you click Check Word.

Try Guess Result

Letter Feedback

Color Meaning
Green Correct letter in the correct position
Yellow Letter is in the word, but in a different position
Gray Letter is not in the word

Student Challenges

  1. Add more words to the words array in wordgame.js.
  2. Change the colors in wordgame.css.
  3. Change the game to use 4-letter or 6-letter words.
  4. Add a counter that stops the game after 6 tries.