I'm asked to the following tasks but am having difficulty returning values.
Here's the code:
function calculateTaxes(price, quantity) {
var salesTax = .10;
var totalPrice;
return totalPrice;
}
// Test Your Code Here
calculateTaxes(1,10);
- calculateTaxes(1,10) should return a number
- calculateTaxes(2,5) should return a value of 11
- calculateTaxes(5,6) should return a value of 33
- calculateTaxes(10,3) should return a value of 33
- calculateTaxes(15,12) should return a value of 198
- calculateTaxes(25,2) should return a value of 55