3. Fix the invoice total
EasyDebugging & productionDebugging
invoiceTotal receives prices as strings in dollars, like "19.99", and must return the total formatted with exactly two decimals, like "20.00". Some totals come out wrong.
Example 1
Input: invoiceTotal(['0.10', '0.20']) Output: "0.30"
Constraints
Fix the bug; keep the function signature