Source code

Revision control

Copy as Markdown

Other Tools

function test(a) {
let x = 0;
for (let i = 0, len = a.length; i < len; i++)
x += a[i];
return x;
}
assertEq(test([10.1, 10.2, 10.3, 10.4, 10]), 51);