- HTML
- CSS
- JavaScript
- JQuery
This is an applicaton that helps user choose one or more individual toppings (cheese, pepperoni, artichoke, anchovy, etc) and a size to order a pizza and see the final cost.
Describe: pizzaOrder()
Case #1 |
---|
Test: Create a pizza order object constructor |
Code: let order = new Pizza("medium", "beef"); |
Expected Output: Pizza { size: "medium", toppings: 'beef' } |
Case #2 |
---|
Test: Create prototype method to select size |
Code: order.selectSize("medium") |
Expected Output: 12 |
Case #3 |
---|
Test: Create prototype method to add toppings |
Code: if (toppings > 3) |
Expected Output: this.price += 10; |
Case #4 |
---|
Test: Create prototype method to add sales tax |
Code: (order.selectSize("medium") + order.addToppings(4)) + 10% tax |
Expected Output: 33 |
- Run
git clone https://github.com/romankolivashko/pizzaParlor_app.git
- Open
index.html
file in browser.
- Follow the link here
- NO bugs have been reported yet
The MIT License (MIT)
Copyright (c) 2021 Roman Kolivashko