Lesson Planet
Search educational resources
  • Sign In Try It Free
  • AI Teacher Tools
    • Discover Resources Search reviewed educational resources by keyword, subject, grade, type, and more
    • Curriculum Manager (My Content) Manage saved and uploaded resources and folders To Access the Curriculum Manager Sign In or Join Now
    • Browse Resource Directory Browse educational resources by subject and topic
    • Curriculum Calendar Explore curriculum resources by date
    • Lesson Planning Articles Timely and inspiring teaching ideas that you can apply in your classroom
    • Our Story
    • Frequently Asked Questions
    • Testimonials
    • Contact Us
  • Pricing
  • School Access
    • Your school or district can sign up for Lesson Planet — with no cost to teachers
      Learn More
  • Sign In
  • Try It Free

Hi, what do you want to do?

Create a lesson plan
Create a lesson plan
Generate resources with 80+ AI teacher tools
Generate resources with 80+ AI teacher tools
Search 200,000 instructional videos
Search 200,000 instructional videos
Find a teaching resource
Find a teaching resource
Challenge: Favorite Animals Interactive
Publisher
Khan Academy
Resource Details
Curator Rating
Educator Rating
Not yet Rated
Grade
6th - Higher Ed
Subjects
STEM
1 more...
Resource Types
Activities & Projects
1 more...
Audiences
For Student Use
1 more...
Duration
30 mins
Instructional Strategies
Hands-on Activity
2 more...
Usage Permissions
Creative Commons
BY-NC-SA: 3.0
cc
Interactive

Challenge: Favorite Animals

Curated and Reviewed by Lesson Planet
This Challenge: Favorite Animals interactive also includes:
  • JavaScript Guide
  • Student Reference
  • Join to access all included materials

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 using a loop construct. Test that all the animals print out, and see that you are using the loop mechanism appropriately by adding more elements to the array. "Oh, my!"

 

 

5 Views 3 Downloads

Concepts

javascript, computer code, Computer Programming, coding, computer drawing, animation

Additional Tags

programming in javascript, drawing and animation coding, using arrays in coding

Pros

  • The results from changes in code are immediately displayed so coders can develop a deeper understanding of their code
  • Simple, easy-to-follow steps are broken down to help a variety of learners

Cons

  • None

See similar resources:

Instructional Video

More While Loops: Balloon Hopper

Khan Academy
Starting with an empty computer screen for a coder can be as intimidating as a bare canvas to a painter or a blank sheet of paper to a writer. Where do you start? If you know what you are trying to build, then you just pick something and...
6th - Higher Ed STEM
Instructional Video

Nested For Loops, Computer Programming

Khan Academy
A loop within a loop is called a nested loop. It expands the repeating code based on two different variables. The video shows an example of drawing an image across and down a screen.
6 mins 6th - Higher Ed STEM
Instructional Video

Intro to While Loops, Computer Programming

Khan Academy
Repetitive tasks, like the scenes from the movie Ground Hog Day, are common in computer programs. But how exactly do you program a piece of code to repeat specific instructions? This is where the While loop comes in handy. This video...
5 mins 6th - Higher Ed STEM
Instructional Video

For Loops! A New Kind of Loop, Computer Programming

Khan Academy
Now that you are familiar with while loops let's look at a new type of loop: the for loop. This video shows the three parts of the for loop: the start, the Boolean test, the value change, and how it differs from a while loop.
6 mins 6th - Higher Ed STEM
Instructional Video

Looping Through Arrays, Computer Programming

Khan Academy
In computer programming, loops and arrays are made for each other. This video describes adding a while loop to print out each element in an array and then doing the same procedure using a for loop.
5 mins 6th - Higher Ed STEM
Interactive

Practice: Using While Loops

Khan Academy
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!
6th - Higher Ed STEM
Interactive

Challenge: Favorite Fruits

Khan Academy
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.  
6th - Higher Ed STEM
Interactive

Project: Build-a-House

Khan Academy
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...
6th - Higher Ed STEM
Interactive

Challenge: A Loopy Landscape

Khan Academy
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. 
6th - Higher Ed STEM
Interactive

Challenge: A Loopy Ruler

Khan Academy
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.
6th - Higher Ed STEM
Try It Free
© 1999-2026 Learning Explorer, Inc.
Teacher Lesson Plans, Worksheets and Resources

Sign up for the Lesson Planet Monthly Newsletter

Open Educational Resources (OER)

  • Health
  • Language Arts
  • Languages
  • Math
  • Physical Education
  • Science
  • Social Studies
  • Special Education
  • Visual and Performing Arts
View All Lesson Plans

Discover Resources

  • Our Review Process
  • How it Works
  • How to Search
  • Create a Collection

Manage Curriculum

  • Edit a Collection
  • Assign to Students
  • Manage My Content
Contact Us Site Map Privacy Policy Terms of Use