Skip to content

Khanjo/Mr-Roboger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Mr. Roboger

A webpage app that responds to numerical input, 06/09/2023

By Joshua Khan

Description

This webpage application takes numerical input, creates an array counting from 0 to input number and then loops through the array replacing certain numbers with strings

Specs

Describe: roboOutput()

  1. Test: "It should return an array of numbers from 0 to the user's inputted number"
    Code: roboOutput(5);
    Expected Output: [0, 1, 2, 3, 4, 5]

  2. Test: "It should replace any number with a 3 in it as 'won't you be my neighbor?'"
    Code: roboOutput(15)
    Expected Output: [0, 1, 2, "won't you be my neighbor?", 4, 5, 6, 7, 8, 9, 10, 11, 12, "won't you be my neighbor?", 14, 15]

  3. Test: "It should replace any number with a 2 in it as 'boop'"
    Code: roboOutput(12)
    Expected Output: [0, 1, "boop", "won't you be my neighbor?", 4, 5, 6, 7, 8, 9, 10, 11, "boop"]

  4. Test: "It should replace any number with a 1 in it as 'beep'"
    Code: roboOutput(10)
    Expected Output: [0, "beep", "boop", "won't you be my neighbor?", 4, 5, 6, 7, 8, 9, "beep"]

Setup/Installation Requirements

Software Requirements

  1. Internet browser
  2. A code editor like VSCode or Atom to view or edit the codebase.

Open by downloading:

  1. Download this repository onto your computer by clicking the 'clone or download button'
  2. Double click index.html to open it in your web browser

Open via Bash/GitBash:

  1. Clone this repository onto your computer: git clone {PUT_REPO_HERE}
  2. Navigate into the {NAME_OF_DIRECTORY} directory in Visual Studio Code or preferred text editor code .
  3. Open index.html in Chrome or preferred browser: open index.html

To see my live website click here!

Known Bugs

No known bugs

Support and contact details

Please reach out via GitHub

Technologies Used

  • HTML
  • CSS
  • JavaScript
  • VSCode

License

MIT License.

Copyright (c) 2023 Joshua Khan

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors