Skip to content

lynnaloo/javascript-for-kids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript for Kids

Simple word-guess game for teaching JavaScript to kids (ages 9 and up). This game includes some basic programming concepts such as storing values in variables, working with arrays, using conditional statements, and using different types of loops.

This version of the game doesn't include validation or complex logic in order to keep it simple for kids.

I recommend writing code in jsfiddle.net. Another good tool is jsbin.com.

To run this game:

  • Clone this repository
  • Open index.html in a browser

Or:

Foundation Lessons

Create the Game in 6 Steps

Skip to the Final Game

Bugs!

This game has bugs! The "homework" from this class is to add functionality and to fix the existing bugs. Some examples of bug fixes are:

  • setting all words to lowercase
  • checking for null prompt answers (and other validation)
  • allowing a user to quit the game once it has started
  • checking for "real" words