Please enable JavaScript to use CodeHS

AP Computer Science Principles in JavaScript

Lesson 4.8 For Loop Practice

Description

In this lesson, students will learn how to create for loops to solve increasingly challenging problems by using nested for loops and branching control structures.


Objective

Students will be able to:

  • Explain the purpose of for loops
  • Create for loops to solve increasingly challenging problems
  • Create nested for loops

Activities

These are all the activities included in the lesson

4.8.1 For Loop Examples
4.8.2 For Loop Examples Quiz
4.8.3 For Loop Sum
4.8.4 Better Sum
4.8.5 Factorial
4.8.6 All Dice Values