The user inputs a number, and the site produces a list of numbers from one to the user number. All multiples of 3 are replaced with 'ping,' multiples of 5 with 'pong,' and multiples of 15 with 'ping-pong.'
Spec | Input | Output |
---|---|---|
It can count up to the provided number. | 4 | 1, 2, 3, 4 |
Numbers divisible by 3 are replaced with "ping." | 6 | 1, 2, ping, 4, 5, ping |
Numbers divisible by 5 are replaced with "pong." | 5 | 1, 2, ping, 4, pong |
Numbers divisible by 15 are replaced with "ping-pong." | 15 | 1, 2, ping, 4, pong, ping, 7, 8, ping, pong, 11, ping, 13, 14, ping-pong |
Run the following commands in Terminal:
$ git clone
this repository$ cd ping-pong
$ open index.html
There are no known bugs at this time.
If you have questions, comments, or concerns, please contact Margaret. Feel free to make a contribution to the code.
- HTML
- CSS
- Bootstrap
- JavaScript
- jQuery
This software is licensed under the MIT license.
Copyright (c) 2017 Margaret Berry