My code
var bills = [50.23, 19.12, 34.01, 100.11, 12.15, 9.90,
29.11, 12.99,10.00, 99.22, 102.20, 100.10, 6.77, 2.22 ];
var totals = bills.map(function(tip){
tip += 15/100;
tip = tip.toFixed(2);
return tip;
});
console.log(totals);
RETURNS
[ '50.38', '19.27', '34.16', '100.26', '12.30', '10.05',
'29.26', '13.14', '10.15', '99.37', '102.35', '100.25', '6.92', '2.37' ]
Now, How can i convert this string array into an numbers array like this
[ 50.38, 19.27, 34.16, 100.26, 12.30, 10.05,
29.26, 13.14, 10.15, 99.37, 102.35, 100.25, 6.92, 2.37 ]