Loops and Conditionals Lab
Now, let's get in a little bit of JavaScript practice; specifically, more loops!
Setup
This lab is a deliverable . When completed, you will submit this in slack.
For this lab, create an HTML, CSS & JS
repl.it and name it Loops and Conditionals Lab
Inside the script.js
file inside your repl, please complete the following:
- Create a loop that logs the numbers from 0-99 (ascending)
- Create a loop that logs the numbers from 99-0 (descending)
- Create a loop that logs the EVEN numbers from 0-98 (ascending)
- Create a loop that logs the EVEN numbers from 98-0 (descending)
- Create a loop that logs the ODD numbers from 0-99 (ascending)
- Create a loop that logs the ODD numbers from 99-0 (descending)
- Create a loop that logs the numbers from 49-72 (ascending)
- Create a loop that logs the numbers from 81-26 (descending)
- Create a loop that logs the numbers from 3-90 that are multiples of 3 (ascending)
- Write a comment and answer the following question
In your own words what is a loop and what problem is it seeking to solve in programming?