Instructions for cloning down this repository to an IDE (coding environment):
- Above the list of files, click on the
Code
button. - Copy the URL of the repository.
- 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
.
- Select the
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".
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.
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.