Ping Pong - Epicodus Arrays and Looping Independent Project
Takes a number input from the user and returns all numbers up to that number to the screen. With the following exceptions:
- In place of numbers divisible by 3, it will return "ping."
- In place of numbers divisible by 5, it will return "pong."
- In place of numbers divisible by 15, it will return "pingpong."
HTML, CSS, BootStrap, JavaScript, and JQuery.
To view the site, please visit my gh-pages at: https://jryanconklin.github.io/pingpong/.
To use the clode, you can clone the repository at https://github.com/jryanconklin/pingpong.
- Download the Repository
- Open the "index.html" file in the Browser
- It can count up to the user inputted number.
Input Example: 2
Example Output: [1, 2]
- It can detect numbers divisible by three and return ping.
Input Example: 3
Example Output: [1, 2, ping]
- It can detect numbers divisible by five and return pong.
Input Example: 5
Example Output: [1, 2, ping, 4, pong]
- It can detect numbers divisible by 15 and return pingpong.
Input Example: 15
Example Output: [...pong, 11, ping, 13, 14, pingpong]
- It only allows number values. A zero returns only itself.
Input Example: 0
Example Output: 0
J. Ryan Conklin
##License This work can be used under the MIT License. Copyright (c) 2016 J. Ryan Conklin