Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.38 KB

File metadata and controls

26 lines (17 loc) · 1.38 KB

Conditionals Lab

Welcome!

Instructions for cloning down this repository to an IDE (coding environment):

  1. Above the list of files, click on the Code button.
  2. Copy the URL of the repository.
  3. If you are using Repl.it:
    • Select the + Create Repl button on the top left corner of the web page.
    • In the pop up window, select the Import from GitHub button
    • Paste the GitHub URL and click on the button Import from GitHub.

Note: If you are coding along with the video, we suggest you open the video in a window on the left and your code in a window on the right. This method of coding along is called "split screen".

Contents

  1. Intro
  2. The Lab

Intro

Conditionals are a super important tool in your toolbox, as they allow the programs you write to react dynamically to variable circumstances. This lab will help you to get more comfortable using if, else, and else-if statements along with examples of where the use of conditionals are necessary.

The Lab

Open up the file named, conditionals.js, and follow the instructions written as comments throughout the file. As you go through the exercise one at a time, some of the pre-written code associated with each challenge is commented to avoid clogging up your output. Make sure to uncomment it first, and then when your code works as expected, comment it again and move on.