A shop needs a subtotal and a discounted total from the supplied values.
calculateSubtotal(price, quantity) as a concise arrow function.applyDiscount(subtotal, discount) with braces and an explicit
return.subtotal and finalTotal from the supplied values.Display exactly:
Subtotal: 60
Final total: 50