Skip to content
Practice working with for and while loops in JavaScript
JavaScript HTML
Branch: master
Clone or download
Pull request Compare This branch is 8 commits ahead of dc-wdi-fundamentals:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
lib
.editorconfig
.gitignore
.remarkrc
CONTRIBUTING.md
LICENSE
README.md
STYLE.md

README.md

General Assembly Logo

Loop Practice

This two part exercise is for you to practice writing loops, using both for loops and while loops.

Prerequisites

  • JavaScript syntax
  • Data types
  • for loops
  • while loops

Instructions

  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 not required to turn in your submission.

Requirements

Part 1: for Loops:

The first series of prompts inside lib/challenge.js is for you to practice writing for loops. Make a commit after completing each prompt.

Part 2: Iterating over Arrays:

The second series of prompts inside lib/challenge.js is for you to practice iterating through an array using a for loop. Make a commit after completing each prompt.

Part 3: while Loops:

The second series of prompts inside lib/challenge.js is for you to practice writing while loops. Make a commit after completing each prompt.

Plagiarism

Take a moment to refamiliarize yourself with the Plagiarism policy. Plagiarized work will not be accepted.

License

  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.
You can’t perform that action at this time.