O'Reilly logo

Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond by JD Isaacks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Lesson 22. Capstone: Hangman game

In this capstone you’re going to build a hangman game. The game will incorporate a status message, letter slots for the word, and buttons for guessing letters (figure 22.1).

You’ll start your project using the start folder included in the code accompanying this book. If at anytime you get stuck, you can also check out the final folder with the completed game. The start folder is a project already set up to use Babel and Browserify (see lessons 13); you just need to run npm install to get set up. If you haven’t read lessons 13, you should before doing this capstone. There’s also an included index.html file: this is where the game will run. It already includes all the HTML and CSS it needs; you just need to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required