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
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: 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,...
Khan Academy
Challenge: A Loopy Ruler
Now try writing your first while loop! This activity guides you through creating a small JavaScript program that marks the top of the screen with a ruler. Use the while loop to write the numbers across the screen.
Khan Academy
Challenge: A Loopy Landscape
Drawing trees and grass over and over again is the perfect time to add a while loop to your computer code. This activity guides coders through the steps as they practice using this loop.
Khan Academy
Challenge: Favorite Animals
I'm not scared of lions & tigers & bears; in fact, they are on my favorites list! Have your young coders practice creating arrays and using loops. First they define the array as a list of favorite animals, then print them out...
EngageNY
The Graph of a Function
Mathematics set notation can be represented through a computer program loop. Making the connection to a computer program loop helps pupils see the process that set notation describes. The activity allows for different types domain and...
Khan Academy
Challenge: Movie Reviews
Create an array of objects in a JavaScript coding practice activity. Movie titles and reviews for multiple movies are collected in an array of objects and then printed out with a looping construct.
Sprite Box
Lightbot Jr 4 Coding Puzzles
Learning how to write computer code has never been so much fun! Given control of their very own robots, children create simple programs in order to solve a series of challenges and develop their problem solving skills.
Ontario
Animation Programming—Computer Studies
Introduce high schoolers interested in animation programming to fundamental programming concepts so that they can plan and write simple programs.
Code.org
Looping and Random Numbers
Repetition, repetition, repetition. Get your class to efficiently repeat a section of code over and over again by introducing looping. Class members learn looping to quickly recreate objects they want to appear more than once in their...
SurfScore
Kodable
Prepare young scholars for life in the twenty-first century with this introduction to computer coding formatted as a fun problem solving game, this resource is a great way to develop children's sequential thinking skills.
Code.org
While Loops
Bring your pupils in the loop with while loops. Scholars learn how to modify conditional statements to produce while loops in the 14th lesson of the series. They use flowcharts to understand loops and then program some examples of loops.
Code.org
Looping and Simulation
Young computer scientists continue programming with while loops by creating a program to simulate coins flipping.
College Board
AP® Computer Science: A Picture Lab Student Guide
How do you modify digital pictures? In this lab learners write methods that modify digital pictures. They how to traverse a two-dimensional array of integers or objects, and are introduced to nested loops, binary numbers, interfaces, and...
Curated OER
Error Checking Loops
Students examine error checking loops. Students explore the use of loops to prevent erroneous data from being entered into a computer. They demonstrate when and where to use an error correcting loop. Students present the proper structure...
Google
Animate a Name
What's in a name? Pupils use the Scratch code blocks to animate letters in a name. They learn about events, sequencing, and loops in computer science by taking part in the project.
Hopscotch Technologies
Daisy the Dinosaur
Have you ever wanted to tell a tyrannosuarus rex what to do? Here's your chance! Introduce youngsters to the world of computer programming with an easy and adorable game in which a dinosaur follows your every command.
Google
Adventure on the High Seas
Ahoy there! A fun computer science lesson challenges pupils to write a program that creates an ocean wave. They then develop stories to accompany their projects. All of this takes place within the Scratch coding program.
Beauty and Joy of Computing
Building Your Own Blocks
Isn't building with blocks an activity for toddlers? The third lab of a five-part unit teaches young computer scientists how to create their own block instructions for programming. They use these blocks to create geometric figures, spell...
College Board
Team Problems in Computer Science
There is no I in team. Seven team problems provide classmates the opportunity to work with a partner on a task. Projects span the course and require pupils to apply their knowledge. Tasks range from writing the algorithm in English to...
Google
Mary Poppins Returns
Make Mary Poppins proud. Young computer scientists use block-based coding to create snowflake animations with a Mary Poppins theme. They learn how to apply sequences, actions, and loops in computer science.
Google
Friends: Imaginator
What does a future as a computer scientist look like? Pupils learn about loops in computer coding by writing a story about the future. They include the repeat until and wait blocks in the Scratch program to incorporate these loops.
Code.org
Minecraft Hour of Code
Devote an hour to computer coding ... it's time well spent! The activity has young computer scientists write code to solve puzzles in the Minecraft game. They learn how to apply block codes and repeat loops.