A very simple game of hangman implemented in javascript