michael@0: var a = []; michael@0: for (let j = 0; j < 6; ++j) { michael@0: e = 3; michael@0: for each (let c in [10, 20, 30]) { michael@0: a.push(e); michael@0: e = c; michael@0: } michael@0: } michael@0: for (let j = 0; j < 6; ++j) { michael@0: assertEq(a[j*3 + 0], 3); michael@0: assertEq(a[j*3 + 1], 10); michael@0: assertEq(a[j*3 + 2], 20); michael@0: }