Giter Club home page Giter Club logo

roboger-neighborhood's Introduction

Mr. Roboger's Neighborhood

By Morgan Waites

Webpage converts integers to array from 0 to user inputted number then displays it with certain numbers changed depending on whether conditions met.

Technologies Used

  • HTML
  • CSS
  • Javascript/JQuery

Description

Webpage converts integers to range of results with index from 0 to inputted integer, with different values for each number. Two forms available, one will add name to some of the results.

Setup/Installation Requirements

  • Clone this repository to your desktop.
  • Navigate to the top level of the directory.
  • Open index.html.

Known Bugs

  • No known bugs.

Github Page

https://mellowmorgan.github.io/roboger-neighborhood/

License

MIT

Copyright (c) 2021 Morgan Waites

Tests

Describe: beepBoop()

Test: "It should return an array with a 0 if the number 0 is inputted"
Code: beepBoop(0);
Expected Output: [0]

Test: "It should return an array with 0 through 5 if input 5 and change 1, 2, 3 with "Beep!", Boop!", "Won't you be my neighbor?"
Code: beepBoop(5);
Expected Output: [0, "Beep!", "Boop!", "Won't you be my neighbor?", 4, 5]

Test: "It should return an array with 0 through 11 with all numbers containing a 1 replaced with "Beep!" as well now."
Code: beepBoop(11);
Expected Output: [0, "Beep!", "Boop!", "Won't you be my neighbor?", 4, 5, 6, 7, 8, 9, "Beep!", "Beep!"]

Test: "It should return an array with 0 through 13 with digits containing 3 having precedence, 2 having precendence over 1, 1 having precedence over rest."
Code: beepBoop(13);
Expected Output: [0, "Beep!", "Boop!", "Won't you be my neighbor?", 4, 5, 6, 7, 8, 9, "Beep!", "Beep!", "Boop", "Won't you be my neighbor?"]

Describe: intFinder(number)

Test: "It should return "Beep!" for input of 1."
Code: inFinder(1);
Expected Output: "Beep!"

Test: "It should return "Boop!" for input of 2."
Code: intFinder(2);
Expected Output: "Boop!"

Test: "It should return "Beep!" for input 10."
Code: intFinder(10);
Expected Output: "Beep!"

Test: "It should return "Boop!" for input 21."
Code: intFinder(21);
Expected Output: "Boop!"

Test: "It should return "Won't you be my neighbor!" for input 32."
Code: intFinder(32);
Expected Output: "Won't you be my neighbor?"

Describe: addNameToResults(array, name)

Test: "It should return array with elements "Won't you be my neighbor!" changed to "Won't you be my neighbor, " + name + "?" and name given is "Morgan.""
Code: addNameToResults(array, name)
Expected Output: array with element "Won't you be my neighbor!" changed to "Won't you be my neighbor, Morgan?"

roboger-neighborhood's People

Contributors

mellowmorgan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.