Source code
Revision control
Copy as Markdown
Other Tools
function testBranchingLoop() {
var x = 0;
for (var i=0; i < 100; ++i) {
if (i == 51) {
x += 10;
}
x++;
}
return x;
}
assertEq(testBranchingLoop(), 110);