Practice What You Learned

Get Setup

  • Go to repl.it and create a fresh repl
  • Choose a nodejs repl
  • In your primary js file complete the following
Write a while loop for the given output:
 10, 30, 50, 70, 90
 20, 40, 60, 80, 100

- This could be acheived a few ways, be creative.


Write a while loop that prints all numbers from 500 - 800 only if they are divisible by 4.

Complete all work in your REPL.it

Copyright © Per Scholas 2023