-
-
Save codecademydev/7e942f0c7140426287129627f5eabba5 to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var orderCount = 0; | |
function takeOrder(topping,crustType) { | |
console.log('Order: pizza topped with ' + topping); | |
orderCount = orderCount + 1; | |
} | |
function getSubTotal(itemCount){ | |
return itemCount * 7.5 | |
} | |
takeOrder("thin crust","bacon"); | |
takeOrder("dark crust","meat"); | |
takeOrder("blue crust","chicken"); | |
takeOrder("red crust","turkey"); | |
console.log(getSubTotal(4)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment