Notes
Untitled
Content of the notes (1)
Page 1
let orderCount = 0;
const takeOrder = (topping, crustType) => {
orderCount++;
console.log('Order: ' + crustType + ' pizza topped with ' + topping);
};
takeOrder('mushroom', 'thin crust');
takeOrder('spinach', 'whole wheat');
takeOrder('pepperoni', 'brooklyn style');
const getSubTotal = (itemCount) => {
return itemCount * 7.5;
};
console.log(getSubTotal(orderCount));
Information
- Description
- Note on Untitled, created by Allison Stc on 19/04/2018.
- Created by
- Allison Stc
- Views
- 0
- Rating