/new-template

Primary LanguageJavaScript

Tasty Plant Pizza Co.

By Kim Brannian

A website for the Tasty Plant Pizza Co..

Technologies Used

  • HTML
  • CSS
  • Bootstrap
  • JavaScript
  • jQuery
  • Git
  • GitHub repositories

Description

A website that will allow users to order a basic plant-based pizza and add toppings of their choice.

Test

  • _Describe: Pizza () Test: It will create a Pizza constructor with properties for size and toppings Code: function Pizza(size, toppings){ this.size = size; this.toppings = toppings; this.price = 22; } Expected Output: testPizza {size: 'medium', toppings: Array(1), price: 22}

    Describe: Pizza.prototype.cost () Test: It will create a Pizza.prototype for the cost of pizza when size is selected Code: Pizza.prototype.finalPrice = function() { if (this.size === "medium") { this.price += 0; } else if (this.size === "large") { this.price += 5; } Expected Output: testPizza2 {size: 'large', toppings: Array(1), price: 27}

    Describe: Pizza.prototype.cost () Test: It will use the Pizza.prototype to add to the cost of pizza based on toppings choice. Code:

Setup/Installation Requirements

Known Bugs

  • Too many bugs

License

MIT License: https://opensource.org/licenses/MIT

Copyright (c) 2021 Kim Brannian _