A program that takes a number from a user and returns a range of number from 1 to the chosen number with certain exceptions. 3/9/18
A website created with HTML and Javascript where a user can submit a number and a range of numbers will be outputted.
Spec | Input | Output |
---|---|---|
It can count up to the provided number | Input: 2 | Output: [1,2] |
It replaces all multiples of 3 with "ping" | Input: 7 | Output: [1,2,ping,4,5,ping,7] |
It replaces all multiples of 5 with "pong" | Input: 6 | Output: [1,2,ping,4,pong,ping] |
It replaces all multiples of 15 with "pingpong" | Input: 15 | Output: [1,2,ping,4,pong,ping,7,8,ping, pong, 11,ping,13,14,pingpong] |
None.
- No known bugs at this time.
-
Javascript
-
jQuery
-
HTML
Email no one with any questions, comments, or concerns.
{This software is licensed under the MIT license}
Copyright (c) 2018 {Alice Hsiao}