Khan Academy
Challenge: Moles in Holes
Move the moles to the holes in this simple coding exercise on using parameters in function calls. The task is broken down for you and the function that draws the mole is already provided. Your job is to add JavaScript code to call the...
Khan Academy
Project: Build-a-House
Start with a basic house created in JavaScript code and practice programming with loops as you add rows of windows, grass, flowers, or trees. How about some apples growing in the trees? You get the idea. Your coding students can let...
Khan Academy
Challenge: Recipe Card
Anyone hungry? Create a recipe object in this coding activity. Include a title, number of servings, and ingredients. All of this adds up to one delicious practice opportunity for your programming students who are just learning how to use...
Khan Academy
Challenge: Parting Clouds
Let the sun shine as your young coders move the clouds across the sky while practicing animation coding skills in JavaScript. Younger learners may benefit from more guided help or a whole-class discussion before trying this coding task.
Khan Academy
Challenge: My Favorite Foods
Create a list of your favorite foods while you practice writing text in JavaScript. Use fill, textSize, and text functions. This is a quick activity that helps solidify basic skills. Expand with additional challenges such displaying food...
Khan Academy
Project: Crazy Painter
An activity titled Crazy Painter might not be high on your list of new things to try with your class; however, you will be happy to know this task has your young coders writing a mess-free painter application in JavaScript. The goal is...
Khan Academy
Project: Make it Rain
Make it rain on your computer screen with this challenging JavaScript programming project. Modify the existing code of one little drop to create a downpour by using arrays and properties of arrays. But why stop there? How about some...
Khan Academy
Challenge: Number Analyzer
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 results.
Khan Academy
Challenge: Favorite Fruits
Creating a list of favorite fruits is the perfect use of an array in coding. Practice defining and using arrays in this simple activity of creating an array and printing out each element in the array.
Khan Academy
Practice: Using Variables
A quick check of understanding is the focus in this short online quiz. Questions ask users to check out a short two- to four- line program and answer a question about the value of a variable. Get five questions correct in row to pass to...
Khan Academy
Challenge: Mickey Mouse Ears
My, what big ears you have! Novice JavaScript programmers adjust Mickey's ears to be proportional with his face and any changes to it. The key is to use variable expressions so that the values used are dependent upon the variable that...
Khan Academy
Challenge: Exploding Sun
Animating an object by moving it across a computer screen can be accomplished by drawing the object repetitively, each time adjusting some aspect of the drawing slightly. This activity is an easy introduction to animation in JavaScript,...
Khan Academy
Practice: Using While Loops
Test your knowledge of loops with this short online quiz about using the while statement in JavaScript code. Get five questions correct in a row and you're done!
Khan Academy
Challenge: Calculator
Calculators aren't all that useful if they don't return the correct results. In this JavaScript programming exercise, beginning JavaScript coders are guided to fix the results returned by the functions so they return correct values....
Khan Academy
Challenge: Lined Paper
Now create your own graph paper with this JavaScript programming activity! First, change the while loop that draws horizontal lines into a for loop. Then, add another for loop that draws the vertical lines. For an added challenge,...
Curated OER
Challenge: Tasty Tomato
Take a big bite out of the red tomato by practicing your use of the variables mouseX and mouseY in a JavaScript coding task. The activity will guide you step-by-step and will help young coders understand how to draw objects based on the...
Khan Academy
Challenge: Smarter Button
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...
Khan Academy
Project: Bookshelf
Start your own virtual library with this JavaScript programming project. Create arrays of book objects, and fill the shelves with different books, different colors, titles, authors, etc. Let coders create their own unique display.
Khan Academy
Challenge: Double Rainbow
Draw a rainbow over the rainbow. The second segment in a series of six has the class practice using functions to edit a program that draws a rainbow. After creating the function, the interactive lesson challenges pupils to create another...
Khan Academy
Challenge: Bucktooth Bunny
Practice creating and using variables by creating variables for the bunny's eyes and teeth in this JavaScript task. Use the slider above the number to see the power of using variables in your code.
Khan Academy
Challenge: Mouse Tracker
Create a small but useful little program that allows you move a dot with your mouse and see the coordinates change as the mouse moves. Starting with a dot that moves with the mouse, add to this program the text of the points coordinates...
Khan Academy
Challenge: Funky Frog
You haven't seen any large-mouth frogs around have you? Hopefully, there will be lots of them as your young JavaScript coders complete this task to create a frog with a wide mouth and use variables in a way that connect the frog face...
Khan Academy
Challenge: Say Your Name
Practice creating and using functions in a simple JavaScript coding exercise. Move code inside the function definition and then add lines to call the simple function. Adding function parameters and return values are covered later in this...
Khan Academy
Challenge: Your First Button
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.