- HTML
- CSS
- JavaScript
- JQuery
- Markdown
- Arrays and Loops
- Constructors
- Objects
- prototype method(s)
- TDD
- Whale Songs
This program presents the user with two groupings of radio buttons. The first set purports to allow the user to "pick a topping" for their pizza. Upon submitting your topping choice the user is presented with another group of radio buttons which represent possible sizes for this hypothetical pizza. Upon submitting the users desired size, the user is then shown the price for their pizza object (an'information pizza'). Based on my observations; The user at this point usually just wants a real pizza. So the user calls Dorminoes and gets that 5.99 mix'n'match pizza deal.
- Navigate to (https://github.com/Bobloblawlobslawbomb/pizzaParlor)
- Clone or download 'pizzaParlor'
- Double click index.html or right-click, (select 'open with...') and choose which program to open or view files
- Once page has loaded you will be presented with a 'friendly statement' and a set of radio boxes which represent topping choices.
- Next the user must chosse one of the topping choices and press the button labeled "Choose Topping"
- The page will then display another set of radio boxes which allow the user to select a size for their pizza.
- Once the user has made their selection and pressed the new button labeled "Gimmie a Price". The user is presented with the price of their pizza using the formula: (price = this.size * this.amountOfTopppings ('this' refers to the users information pizza))
- User is only able to get one topping on their pizza (but honestly it's my pizzaria, this is just how we make them here)
- note: 'checkboxes' branch has recently been updated with a WIP: checkboxes solution but currently that pizzaria only serves pepperoni pizza.
-
Allow the user to order more than one topping on their pizza. Either with new forms or via a different selection type, possibly checkboxes. --see note above
-
Recalculate prices of individual toppings to be more varied
Describe: function Pizza "a constructor function to make pizza objects with properties of: toppings, size, amountOfToppings" Test: it will make a pizza object Code:
const pizzaOne = new Pizza(["mushrooms","olives"],3); pizzaOne Expected Output: Pizza {toppings: Array(2), size: 3, amountOfToppings: 2}
Describe: Pizza.prototype.price() "a Pizza prototype method that determines the price of the pizza it is called on" Code:
const pizzaOne = new Pizza(["mushrooms","olives"],3); pizzaOne.price() Expected Output: 6
Photo by: Ivan Torres https://unsplash.com/photos/MQUqbmszGGM On unsplash.com
License [GPL] (https://choosealicense.com/licenses/gpl-3.0/)
if you do run into any issues or have questions, ideas, or concerns; I would greatly encourage you to send feedback or make a contribution to the code
Contact Giancarlo Vigneri at: bobloblaw.vigneri@gmail.com