Source code
Revision control
Copy as Markdown
Other Tools
function ifInsideLoop()
{
var cond = true, intCond = 5, count = 0;
for (var i = 0; i < 100; i++) {
if (cond)
count++;
if (intCond)
count++;
}
return count;
}
assertEq(ifInsideLoop(), 200);