This app is a weekly programming submission for Epicodus programming bootcamp. The learning objectives are to separate Javascript business logic and user interface logic, implement for loops and include tests for each behavior. 8/21/20
This application takes a number from a user and returns a range of numbers from 0 to the user inputted number. If a user enters number 1 the website returns with "Beep", number 2 returns "Boop", and 3 returns "Won't you be my neighbor?"
The program returns a range of numbers from 0 to the user’s inputted number.
- Input: “4”
- Output: “0, 1, 2, 3, 4”
The program will replace numbers with strings (phrases) based on the rules:
If a user inputs a number and the range from 0 to that number1 includes 1, the program returns a range that replaces the 1 with “Beep!”
- Input: “1”
- Output: “0, Beep”
Then, if a user inputs a number and the range from 0 to that number includes 2, the program will also return a range that replaces the 2 with “Boop!”
- Input: “2”
- Output: “0, Beep, Boop”
Then, if a user inputs a number and the range from 0 to that number includes 3, the program will also return a range that replaces the 3 with “Won’t you be my neighbor?”
- Input: “5”
- Output: “0, Beep, Boop, Won’t you be my neighbor?, 4, 5”
However, there are exceptions to the rules. The program will return the phrase “Won’t you be my neighbor?” if a user inputs the number “13” and will return the phrase “Boop!” if a user inputs the number 21.
However, if a user enters a number that contains both a 3 and a 1, this rule for 3 takes precedence and the entire number is replaced with “Won’t you be my neighbor?”
- Input: “31”
- Output: "Won't you be my neighbor"?
- Open terminal
- Create project page in terminal
- Cd robogers-neighborhood
- Open in VSCode
- index.html in browser chrome to view the page
Email Address: duverseaujohnny21@gmail.com
- HTML,
- JavaScript,
- Jquery
- Boostrap
- Markdown
This software is licensed under MIT license
Copyright (c) 2020 Johnny Duverseau