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 (element) {
element *= 1.15;
element = element.toFixed(2);
element = Number(element); // What is the meaning of this line? what is number here?
return element;
});
I don't think there's a need for this line
Number() converts values to numbers.
Обсуждают сегодня