/Pizza-Parlor

Object-Oriented JS

Primary LanguageHTML

Pizza Parlor

A Project Implementing Object Oriented JS

By Sammai Gutierrez

Technologies Used

  • GitHub
  • VS Code
  • HTML
  • CSS
  • GitBash
  • jQuery
  • JavaScript

Description

_In brief, this project shows the utilization of basic implementation of object oriented JavaScript _

Specifications, Test-Driven Development (TDD)

  1. First Test

    Test:"It should calculate the cost per topping"

    Describe: Pizza.prototype.cost = function(){}

    Code:

     Pizza.prototype.cost = function(){
    
         let toppings = [3,3,3];
    
         let toppingSum = (rackUp, currentTopping) => rackUp + currentTopping;
    
         let toppingTotal = toppings.reduce(toppingSum);
     }
    

    Expected Output: 9

  2. Second Test

    Test:"It should return the total including the cost per size and toppings."

    Describe:Pizza.prototype.cost = function(){}

    Code: Select "Large" and "Green Zebra Tomatatoes"

    Expected Output: 30

Setup/Installation Requirements

  • Internet browser
  • A code editor such as VS Code.
  • An account with GitHub

Steps to open project:

  1. Download this repository by selecting the green button denoting code and select download
  2. Open the folder
  3. Open the index.html folder to open it in your browser.

Known Bugs

  • Nothing yet

License

MIT © 2021 Sammai Gutierrez