We are in a supermarket and we would like to buy some items for our house.
Here is the list of items in our basket. Price, VAT and quantity for each item is next to the item.
Item | Price | Quantity |
---|---|---|
Baget | 1.05 | 2 |
Butter | 2.00 | 1 |
Milk | 0.86 | 3 |
- Please create separate functions with following names
- calculatePriceWithQuantity (takes 2 parameters)
- calculateTotalPriceOfTheBasket (takes 3 parameters)
- formatThePrice (takes 1 parameter)
The initial variables are declared in index.js file already.Please complete the rest of it.