Program will output numbers from one up to a user given interval in an inordered list Numbers divisible by 3 are replaced with "ping" Numbers divisible by 5 are replaced with "pong" Numbers divisible by 15 are replaced with "ping-pong"
-
Clone this repository (https://github.com/CalebPaul/ping-pong.git) to your desktop
-
Open index.html in the browser of your choosing
-
Alternatively, navigate to https://calebpaul.github.io/ping-pong/
None known
##Specifications
Behavior this program should handle | Input Example | Output Example |
---|---|---|
A single number | 2 | 1 2 (program should count up from one to 2, with each number in an unordered list) |
number(s) in list that are divisible by 3 | 3 | 1 2 ping |
number(s) in list that are divisible by 5 | 1 2 3 4 5 | 1 2 ping 4 pong |
number(s) in list that are divisible by 15 | ..13 14 15 | 13 14 ping-pong |
a new number entered | 3 | 1 2 ping (program should clear original list, and display new list based on most recent input) |
Caleb Paul: calebpaul21@gmail.com
Javascript jQuery
This webpage is licensed under the GPL license.
Copyright (c) 2016 Caleb Paul