Dissecting Hangman

There are two folders and an HTML file for the Hangman game. The two folders are named as css and js. The index.html HTML file should contain the following code:

<html lang="en" ng-app="hangman"> <head> <title>Hangman</title> <link rel="stylesheet" href="css/styles.css"> <script src="js/angular.min.js"></script> </head> <body ng-controller="StartHangman"> <p>Hangman</p> <svg width="400" height="400"> <rect ng-show="failedGuess.length >= 1" x="0" y="0" width="40" height="400"></rect> <rect ng-show="failedGuess.length >= 2" x="40" y="20" width="200" height="40"></rect> <rect ng-show="failedGuess.length >= 3" x="173" y="50" width="4" height="100"></rect> <circle ng-show="failedGuess.length >= 3" cx="175" cy="120" r="40"></circle> ...

Get JavaScript Projects for Kids now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.