The web application takes a number from a user and returns a range of numbers from 0 to the chosen number. If the number contains a 0 the program returns Beep. If the number contains a 1 the program returns a Boop. If the number is divisible by 3 the program returns the phrase "I'm sorry, Dave. I'm afraid I can't do that.".
Spec | Input | Output |
---|---|---|
The program returns the same user input back. | Input: "Hello World" | Output: "Hello World" |
The program only accepts numbers. | Input: "run" | Output: "This program only accepts numbers." |
The program a string of numbers counting to the entered number. | Input: "5" | Output: "1,2,3,4,5" |
The program returns numbers that contain a 0 with "Beep!" | Input: "10" | Output: "1,2,3,4,5,6,7,8,9,Beep!" |
The program returns numbers that contain a 1 with "Boop!" | Input: "3" | Output: "Boop!,2,3" |
The program returns numbers divisible by 3 with "I'm sorry, Dave. I'm afraid I can't do that." | Input: "3" | Output: "Boop!,2," |
- Open file in a web browser.
- Clone the repository.
None.
_HTML
Atom.
JavaScript
GitHub_
*This is licensed under MIT.*a
Copyright (c) 2018 Connor McCarthy