https://zperez0.github.io/pizza-shop/
- HTML
- CSS
- Bootstrap
- JavaScript
- jQuery
This web application is designed to allow users to build their own pizzas by choosing up to two toppings and sizes. The total cost is calculated based on a choice of desired toppings and size. This project was created in order to demonstrate my knowledge and understanding of object-oriented programming.
- Open GitHub
- Copy repository url
- Clone this repository to your desktop
- Open pizza-shop/index.html
- Drag and drop into browser
Describe: Pizza()
Test: "it should return a Pizza object with two properties for topping and size."
Code: const myPizza = new Pizza ('Veggies', 'Large');
Expected Output: Pizza { toppings: 'Veggies', size: 'Large' }
Test: "it should return a Pizza object with two values for the property topping and a single value for the property size."
Code: const myPizza = new Pizza(['Veggies','Cheese'], 'Large');
Expected Output: myPizza { toppings:['Veggies', 'Cheese'], size: 'Large' }
Describe: toppingOnePrice()
Test: "it should return a Pizza object with three properties for topping, size, and price."
Code: const myPizza = new Pizza(['Veggies','Cheese'], size: 'Large', 4.99);
Expected Output: myPizza { toppings:['Veggies', 'Cheese'], size: 'Large', price: 4.99 }
Describe: toppingTwoPrice()
Test: "It should return the cost of adding cheese to a pizza"
Code: const myPizza = new Pizza ('Cheese');
Expected Output: price: 1
Describe: sizePrice()
Test: "It should return the cost of a small pizza"
Code: const myPizza = new Pizza('Cheese', 'Small');
Expected Output: price: 10
- No known issues
Copyright (c) 2022 Z Perez