Interactive
Khan Academy

Challenge: Number Analyzer

For Students 6th - Higher Ed
The JavaScript program you create will answer a simple question about a number. Is it positive, negative, or zero? Create a Boolean expression and use conditional if statements to test the value and then print the...
Interactive
Khan Academy

Challenge: Your First Button

For Students 6th - Higher Ed
Practice using conditional if statements, Boolean expressions, and Boolean operators by programming a user-selected button. This activity guides by using a small program that needs some modifications to work correctly. 
Interactive
Khan Academy

Challenge: Bouncy Ball

For Students 6th - Higher Ed
Create your own bouncing ball program with this guided activity. Java Script code that sends a ball down the screen is provided. The task is to fix the code to make it bounce up when it hits the bottom of the screen and then down again...
Interactive
Khan Academy

Challenge: Smarter Button

For Students 6th - Higher Ed
Now, challenge your knowledge of Boolean operators even further with this JavaScript program to create a button that changes color after being pressed. This activity is the second in a series and would made a good follow up to the first...
Lesson Plan
Code.org

Understanding Program Flow and Logic

For Teachers 9th - 12th
Explore decision-making logic in programming computer games. The 10th installment of a 21-part unit teaches scholars how to apply conditional statements and Boolean expressions. They use these concepts to create a "Guess My Number" game...
Lesson Plan
Code.org

Event-Driven Programming and Debugging

For Teachers 9th - 12th
Start programming in event-driven style. Scholars learn to place buttons on the user interface and use event handlers. They also learn to recognize errors in code and debug as necessary. This is the second lesson in the series of 21.
Interactive
Khan Academy

Challenge: Your First Painting App

For Students 6th - Higher Ed
Ever wonder how those neat painting applications work? Completing this coding activity will give you some insight. First, starting with a simple function that draws a small circle as the mouse moves around the screen, adjust the function...
Interactive
Khan Academy

Project: Magic 8-Ball

For Students 6th - Higher Ed
Your student programmers will enjoy creating their own Magic 8-ball in this JavaScript activity. This a great opportunity to practice using if and else statements based on randomly generated numbers. What will you ask the 8-ball? 
Interactive
Khan Academy

Challenge: Flashy Flash Card

For Students 6th - Higher Ed
Create your own flash card in this JavaScript coding activity. Modify the given code so that the answer is revealed when the mouse is pressed. Provides good practice of conditional if-else statements.
Lesson Plan
Code.org

Introduction to Conditional Logic

For Teachers 9th - 12th
On one condition ... explore how to use conditionals within conditionals. Scholars apply conditional statements to improve upon the app they built during a previous lesson. They also learn about nested conditionals in the 11th lesson of...
Lesson Plan
Code.org

Functions with Return Values

For Teachers 9th - 12th
Young computer scientists explore how to use the return command in computer programing by playing Go Fish. They learn about functions that return values and then write a turtle driver app using the return function. 
Unit Plan
Mathematics Vision Project

Module 6: Congruence, Construction, and Proof

For Teachers 8th - 10th Standards
Trace the links between a variety of math concepts in this far-reaching unit. Ideas that seem very different on the outset (like the distance formula and rigid transformations) come together in very natural and logical ways. This...
Lesson Plan
Code.org

Looping and Simulation

For Teachers 9th - 12th
Young computer scientists continue programming with while loops by creating a program to simulate coins flipping. 
Lesson Plan
Code.org

While Loops

For Students 9th - 12th
Bring your pupils in the loop with while loops. Scholars learn how to modify conditional statements to produce while loops in the 14th instructional activity of the series. They use flowcharts to understand loops and then program...
Lesson Plan
Code.org

Image Scroller with Key Events

For Teachers 9th - 12th
Discover how to embed images in lists. Scholars modify an existing app to include an image scroller in the 17th lesson of the series. They learn to refactor code and remove redundancies after modifying code.