/epicodus-project3-beep-boop

Epicodus independent project #3. Uses loops and arrays to output a list of numbers based on user input following specified parameters.

Primary LanguageHTML

Beep-Boop Counter

Week 3 Independent Project: "Beep-Boop", 10.26.2018

By Kenny Wolfenberger

Description

This website takes a number input by a user and returns a list of numbers from 0 to that number, with some additional changes outlined in the "Specs" section. This is accomplished using JavaScript Loops and Arrays.

Specifications

Spec Input Example Output Example
Output should list numbers from 0 to User Input 9 0,1,2,3,4,5,6,7,8,9
Rule 1: If number contains "0", all digits are replaced with "Beep!". 20 ["Beep!"]
Rule 2: If number contains "1", replace all digits with "Boop!" 19 ["Boop!"]
Rule 3: Numbers divisible by 3 are replaced with phrase. 3 "I'm sorry, Dave. I'm afraid I can't do that."
Rule 2 takes precedence over Rule 1. 10 ["Boop!"]
Rule 3 takes precedence over Rule 1. 30 "I'm sorry, Dave. I'm afraid I can't do that."
Rule 3 takes precedence over Rule 2. 15 "I'm sorry, Dave. I'm afraid I can't do that."
User should be able to enter new number and see new results. Input "3", submit, then input "4". Clear results from "3", then return results for "4".
Clicking the "Count Backward??" button will return the same results in reverse order. 2 2, 'Boop!, 'Beep!'

Setup/Installation Requirements

  • Clone this repository on GitHub
  • Open the index.html file in a web browser to view the webpage
  • In the webpage, enter numbers into the entry form and click "Count" or "Count Backward??" to see the results.
  • Open index.html and scripts.js files using text editor (such as Atom) to view the code

Known Bugs

N/A

Support and contact details

Contact Kenny Wolfenberger - kennywolfenberger@gmail.com.

Technologies Used

  • HTML
  • CSS
  • Bootstrap
  • JavaScript
  • jQuery

License

This software is licensed under the MIT license.

Copyright (c) 2018 Kenny Wolfenberger