- HTML
- CSS
- JS
This webpage contains project for pizza parlor, a website for a pizza company where a user can choose one or more individual toppings, a size to order a pizza, and see the final cost.
- Clone this repository to your desktop.
- Navigate to the top level of the directory.
- Open index.html in your browser.
- No known bugs
Copyright (c) 12/10/2022 Anahi Ruiz Robles
Describe: Pizza()
Test: It should return pizza object with toppings and size.
Code: let myPizza = new Pizza("medium",["bacon", "chicken", "onion"]);
Expected Output: myPizza Pizza {size: 'medium', toppings: Array(3),toppings
(3) ['bacon', 'chicken', 'onion']
Test: It should add pizza price based on size
Code: let myPizza = new Pizza("medium",["bacon", "chicken", "onion"]);
myPizza.addSizePrice();
Expected Output: 15
Test: It should add pizza toppings price
Code: let myPizza = new Pizza("medium",["meat-balls", "piña", "quesito"]);
myPizza.addToppingPrice();
Expected Output: 15
Test: It should return final pizza price
Code: let myPizza = new Pizza("medium",["meat-balls", "piña", "quesito"]);
myPizza.addFinalPrice();
Expected Output: 30