Skip to content
Exercise for practicing writing conditionals in JavaScript
JavaScript HTML
Branch: master
Clone or download
Latest commit 84c78fb Mar 29, 2019

General Assembly Logo

Conditionals Practice

Use this exercise to practice writing conditionals!


  • JavaScript syntax
  • Data types


  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.

Open the lib/index.html file in your browser, either directly or by using the live server. Then open the console and inspect your work!


Open up the lib/ directory in VSCode and work through the prompts in challenge.js. Make a commit after completing 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
You can’t perform that action at this time.