Teaching Tip: Making the Loop Variable Visible
When students in our yearlong JavaScript courses reach for loops, many of them assume they already understand them, since the syntax is the same as what they wrote with Karel. What’s new is that the loop variable i now matters. Students start changing the starting value, condition, and increment, and soon after they use i to place shapes on the canvas with code like circle.setPosition(i * 40, 100). In both cases, students do better when they work out the values before running anything. Have them predict what for (let i = 2; i < 10; i += 2) prints and check it with console.log(i), or write out the first three x-values of a graphics loop on paper before coding it. This makes the math visible and cuts down on trial-and-error guessing.
Project Catalog

Be sure to check out our Project Catalog this fall, which provides a world of creative possibilities for students to use JavaScript outside of their regular coursework. The catalog has over 100 projects, ranging in language, difficulty, length, and theme. They are a great way to extend student learning in a fun and meaningful way.
If you’re unsure about where to start, check out the following relevant JavaScript projects:
Changing Leaves Project
Jack O'Lanterns Project
Thanksgiving Pies Project
Generative Art Project
Extra Resources: Tutorials and Practice
Do you have students who would benefit from extra support or practice? Be sure to check out our JavaScript tutorials and Practice exercises. The tutorials are a great way to support student learning on particular topics. They include explanations, images, and runnable code examples. Our Practice exercises are perfect for students who just need some extra practice coding with particular topics.
Here are a handful of tutorials to consider:
Extra Support: User Input
Extra Support: Basic Functions
Extension: The JavaScript Math Object
Extension: Deep Dive into Strings
Extension: Adding Color to the Console with ANSI
Karel Now Works With Every CodeHS Tool

Karel now runs in the same editor as everything else, so Code History, academic integrity, collaboration, and step-through debugging all work with Karel in both assignments and the Sandbox.
Request a Visit from CodeHS for CSEdWeek
From November 30th – December 11th, CodeHS team members are visiting classrooms to celebrate Computer Science Education Week! Request a visit from the team or explore Hour of Code and Hour of AI activities you can assign to students during CSEdWeek.
Upcoming PD Events
Preparing to Teach an Hour of AI for HS and MS
Nov 18, 2026 · 3:30 - 4:15pm CT · Virtual · RSVP
Preparing to Teach an Hour of Code for HS and MS
Nov 19, 2026 · 3:30 - 4:15pm CT · Virtual · RSVP
Stay connected
Chat with others in the CodeHS Educators Facebook Group
Explore the CodeHS JavaScript TopicHub
- The CodeHS Team