Closed lagden closed 10 years ago
I think this syntax is the problem
for (s = 10, n = 0, i = 0; s >= 2; n += c[i++] * s--);
I made a small script to confirm:
function xxx() {
var c = [3,5,6,7,1,1,3,8,0,0,0,1,0,5],
i, n,
b = [6, 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2];
for (i = 0, n = 0; i < 12; n += c[i] * b[++i]);
console.log(n);
}
Tested on cli
and online
Fail
Thanks, I think I see what's going on.
Hi
I've got this error when I try run
fixmyjs
on code below:codeBelow.js