Exercises to practice working with control flow
Clone or download
Pull request Compare This branch is 1 commit ahead of dc-wdi-fundamentals:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


General Assembly Logo

Control Flow Practice

The purpose of this exercise is to practice working with loops and conditionals. Think of it as doing reps or practicing scales! The more you practice, the better you'll get.


  • Fundamental JavaScript: syntax, data types, and arrays
  • Conditions, including if, if/else, and if/else if/else
  • Loops, both for loops and while loops


  1. Fork and clone this repository.
  2. Change into the new directory.
  3. Fulfill the listed requirements.

Starter code is available in lib/challenge.js. You are required to turn in your submission by making a pull request on the original repository.

Unless otherwise specified on the calendar, homework is due the next morning by 9:00am.

Make a commit after each prompt.


There are a series of prompts inside lib/challenge.js. Work through all of the prompts. Each prompt is in the form of a JavaScript comment. Write your code to solve the prompt after the comment.

Some prompts will require you to practice researching methods we did not learn in class.

You are required to make a commit after each prompt.


  1. All content is licensed under a CC­BY­NC­SA 4.0 license.
  2. All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact legal@ga.co.