var result = 1; //2 в 0 степени var num = 2; //Основание alert(result*=num) alert(result*=num) alert(result*=num) alert(result*=num) alert(result*=num) alert(result*=num) alert(result*=num) alert(result*=num) alert(result*=num) alert(result*=num)