Source code

Revision control

Copy as Markdown

Other Tools

var s = '';
var a = [, 0, 1];
for (var i in a) {
a.reverse();
s += i + ',';
}
// Index of the element with value '0'.
assertEq(s, '1,');