-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathloops_practice
More file actions
21 lines (11 loc) · 890 Bytes
/
loops_practice
File metadata and controls
21 lines (11 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// # 1. Write a while loop to print the numbers 1 through 10.
// # 2. Write a while loop that prints the word "hello" 5 times.
// # 3. Write a while true loop that will print the numbers 1 through 100.
// # 4. Write a while loop that prints the numbers 0 through 100, increasing by 5 each time.
// # 5. Write a while loop that prints the number 9000 ten times.
// # 6. Write a while true loop that will run forever and print each number until the number greater than 10.
// # 7. Write a while loop that prints the numbers 50 to 70.
// # 8. Write a while loop that prints the phrase "Around the world" 144 times.
// # 9. Write a while true loop that prints the phrase "cookie" 15 times.
// # 10. Write a while loop that prints the even numbers from 2 to 40.
SOLUTIONS: https://github.com/TaylorOD/Deliberate_Practice-JavaScript/blob/master/solution_key/loops_practice_solutions.js