- VS Code Software
- Github
- Google Chrome Browser
- HTML
- CSS
- Markdown
- Bootstrap
- JavaScript
- jQuery
ADD DESCRIPTION HERE.
- In order to utilize this page, you will need to clone a copy of this repository to your workspace using the "$ git clone {url}" in your coding terminal.
- Once cloned you will need software to edit and further contribute to the code. You can download the free code editor, VS Code, at https://code.visualstudio.com/.
- Once installed, open the folder of the cloned repository, with will contain the HTML index, bootstrap.css and jQuery.js files, along with separate style and script pages for more personal edits.
- You can now open each of the individual files and edit them as you see git on VS Code.
- To open the cloned project, simply go to the folder/directory you to which you cloned the project, and open the index.html file in your browser.
- As you add, edit, and change your code, the command "$ git status" will inform you what has been recently altered in the git.
- Once any changes are made, utilize the command "$ git add ." to add the necessary files to be committed
- To commit any changes, use the command "$ git commit -m "description of what was altered for ease of reference."
- For example, the command "$ git commit -m "create initial html and style sheet pages," would be a short and concise example of a good initial commit to save your work.
- The command "$ git log" will show the history of the commits that have been made. If the list is long, you may need to type the letter "Q" on your keyboard to return to your code terminal.
- If you'd like, you can sign up for own Github account, so you can store any works of your own to share and/or publish, which can be done for free at https://github.com/ .
- Once you have your Github account, you can create your own repositories to share with others and publish as you see fit.
- Create a way to save your changes to your own personal Github account by adding a remote to your page via the command "$ git remote add {nickname for your remote} {url of your Github repository}."
- For example, the command "$ git remote add ra https://github.com/rjashby/interior-decorator," would add a new remote called "ra" located at "https://github.com/rjashby/interior-decorator".
- To "push" and save the changes to your Github repository, use the command "$git push {nickname for your remote} {url of your Github repository}." *"Pushing" your commits saves them to the cloud server on Github, and allows you (or someone else) to clone down your saved repository in the same manner provided above.
Test: "It should return an object with the properties of size and an array of toppings." Code: pizza1 = new Pizza("medium", ["ham", "pineapple"]); Input: pizza1.size; Expected output: "medium"
Test: "It should create a Pizza prototype method calculating cost based on size and toppings, starting at base zero" Code: Pizza.prototype.cost = function () { let priceTotal = 0 let sizeAdd = 0 let toppingOneAdd = 0 let toppingTwoAdd = 0 let toppingThreeAdd = 0 } return priceTotal; Input: Expected output: "0"
Test: "It will increment the cost of the pizza upwards based on the size chosen" Code: if(this.size === "small") { sizeAdd += 6; priceTotal = sizeAdd; return priceTotal; Input: "small" Expected output: "6"
Test: "It will increment the cost of the pizza upwards based on the first topping chosen" Code: if(this.topping1 === "pepperoni") { toppingOneAdd += 3; priceTotal = toppingOneAdd; return priceTotal; Input: "pepperoni" Expected output: "3"
Test: "It will increment the cost of the pizza upwards based on the second topping chosen" Code: if(this.topping2 === "sausage") { toppingTwoAdd += 3; priceTotal = toppingTwoAdd; return priceTotal; Input: "sausage" Expected output: "3"
Test: "It will increment the cost of the pizza upwards based on the third topping chosen" Code: if(this.topping3 === "onions") { toppingThreeAdd += 2; priceTotal = toppingThreeAdd; return priceTotal; Input: "onions" Expected output: "2"
Test: "It will calculate the total cost of the pizza based on the size and toppings chosen" Code: priceTotal = sizeAdd + toppingOneAdd + toppingTwoAdd + toppingThreeAdd; return priceTotal; Input: "small, pepperoni, mushrooms, onions" Expected output: Pizza {size: 'small', topping1: 'pepperoni', topping2: 'mushrooms', topping3: 'onions'} pizza1.cost = $13
- No Known Bugs
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copyright (c) November 5, 2021, Ryan Ashby