Source code

Revision control

Copy as Markdown

Other Tools

function testDestructuring() {
eval();
var t = 0;
for (var i = 0; i < 9; ++i) {
var [r, g, b] = [1, 1, 1];
t += r + g + b;
}
return t
}
assertEq(testDestructuring(), (9) * 3);