- HTML
- JavaScript
- CSS
- Markdown
- Bootstrap
- JQuery
A page that takes in a number and returns a different based on button pressed. BeepBoopify! returns the number with 1's replaced by "Beep!", 2's replcaed by "Boop!" and 3's replaced by "Won't you be my neighbor?" with preference for 3 then 2 then 1. ReverseBoopify does the same as BeepBoopify but it reverses the order of the array. !yfipooBpeeB does the same as ReverseBoopify but it also reverses the order of all strings within the array
- You can find the github repository here
- Clone the repository to your computer by using the git command: git clone followed by the link above
- Navigate to the folder you cloned the link to
- Open the index.html file in a browser
- OR
- You can find the project on github pageshere
- No known bugs
Describe: beepBoopify()
Test: "It should return the number that is input" Code: beepBoopify(123); Output: 123
Test: "It should return a range of numbers from 0 to the input" Code: beepBoopify(5); Output: 0, 1, 2, 3, 4, 5
Test: "It should change 1 to "Beep!" Code: beepBoopify(5); Output: 0, "Beep!", 2, 3, 4, 5
Test: "It should change any number containing a 1 to "Beep!" Code: beepBoopify(12); Output: 0, "Beep!", 2, 3, 4, 5, 6, 7, 8, 9, "Beep!", "Beep!", "Beep!" Note: Created contains1() here
Test: "It should change 2 to "Beep!" Code: beepBoopify(5); Output: 0, "Beep!", "Boop!", 3, 4, 5
Test: "It should change any number containing 2 to "Beep!" Code: beepBoopify(5); Output: 0, "Beep!", "Boop!", 3, 4, 5 Note: DRY'd, changing contains1() to containsX() to account for any value.
Test: "It should change any number containing 3 to "Won't you be my neighbor?!" Code: beepBoopify(3); Output: 0, "Beep!", "Boop!", "Won't you be my neighbor?" Note: Since code was DRY'd containsX already accounts for it in any digit
Test: "It should prioritize 3 then 2 then 1" Code: beepBoopify(13) Output: 0, "Beep!", "Boop!", "Won't you be my neighbor?" ... 9, "Beep!", "Beep!", "Boop!", "Won't you be my neighbor?"
Describe contains1() Note: Not in final product
Test: "It should return true if the input is a 1" Code: contains1(1); Output: true
Test: "It should return true if any digit in the input is a 1" Code: contains1(41); Output: true
Describe containsX()
Test: "It should return true if the input is a X" Code: contains1(12, 12); Output: true
Test: "It should return true if any digit in the input is X" Code: contains1(12345, 3); Output: true
Describe reverseArray()
Test: "It should take an array and reverse the order" Code: reverseBoopify(array[1,2,3,4,5]) Output: 5,4,3,2,1
Test: "It should take only output the reveresed array if the parameter is an array" Code: reverseBoopify("words") Output: console.error("This is not an array, nothing is going to happen");
Describe reverseStrings()
Test: "It should take an array and return true if the array contains strings" Code: totalReverse(array[1,2,3,"four]); Ouput: true
Test: "It should loop through the array and reverse the strings" Code: totalReverse(array[1,2,3,"four"]); Output : 1,2,3"rouf"
License - MIT
If you run into any problems or find a bug, would like to reach me for a separate reason, feel free to send me an email @jacobleeeugenewilson@gmail.com with details of your issue.
Copyright (c) 10/29/2021 Jacob Wilson(s)