Coding Games
These puzzles and games will teach you JavaScript fundamentals.
Lesson 1: Flow of control
This is an introductory puzzle, you can use command buttons to write code.
Complete 10 levels and move on to the next puzzle.
This puzzle will start with simple function calls and progress to using loops in your code.
There are no command buttons, so you will have to write the code by hand.
Complete 10 levels and move on to the next puzzle.
Lesson 2: Calling functions
Direct city traffic using stop signs.
You will be calling functions with parameters.
Help baby owls get back to their mother.
Make a path for them by adding or removing trees.
Lesson 3: Conditional Statements
Help caveman avoid running dinosaurs. Find an unoccupied track using if statement and move your caveman there before dinosaurs arrive.
Lesson 4: Variables
Find out how to declare variables and assign their values.
Learn different kinds of data types in JavaScript and how they are different from one another.
Lesson 5: Creating functions
Learn how to create your own functions.
Function is a basic building block of any program,
it usually does something useful and you can call it multiple times from different parts of your program.
Lesson 6: Using a counter variable
This puzzle will show you why you may need a variable.
You are setting up a parking lot, but it is very small so the space is limited.
You need to allow no more than 7 cars into your parking lot.