michael@0: function innerLoopIntOuterDouble() { michael@0: var n = 1000, i=0, j=0, count=0, limit=0; michael@0: for (i = 1; i <= n; ++i) { michael@0: limit = i * 1; michael@0: for (j = 0; j < limit; ++j) { michael@0: ++count; michael@0: } michael@0: } michael@0: return "" + count; michael@0: } michael@0: assertEq(innerLoopIntOuterDouble(), "500500");