История изменений
Исправление Black_Roland, (текущая версия) :
<!DOCTYPE html>
<html>
<body>
<script type="text/javascript">
var a = { one: 'one', two: 'two' };
var b = {};
var i = 2000;
var go = function() {
for (i = 10000000; i > 0; i--) {
b[i] = a;
}
alert('Done!');
}
</script>
<button onclick="go()">Go!</button>
</body>
</html>
Исходная версия Black_Roland, :
<!DOCTYPE html>
<html>
<body>
<script type="text/javascript">
var a = { one: 'one', two: 'two' };
var b = {};
var i = 2000;
var go = function() {
for (i = 10000000; i > 0; i--) {
b[i] = a;
}
alert('Done!');
}
</script>
<button onclick="go()">Go!</button>
</body>
</html>