The hangman game uses JavaScript to get a word from a string and then as the user guesses letters on their keyboard the letter is either added to the bottom or shown as a wrong guess and part of the hangman is shown.
View project on stand alone page
This is part of Brad Traversy’s 20 Web Projects with Vanilla JavaScript
Hangman Game