SOURCE

// 1
var i = 0;
for(i; i<10000; i+=3){
  document.write(i+", ");
}

document.write("<br><br>");
// 2
function multiply(x,y){
	if(y==0){
    return 1;
  }
  var h = y-1;
  var j = x;
  for(var i=0; i<h; i++){
    j = j*x;
  }
  return j;
}

var multi = multiply(3,10);

document.write(multi);

document.write("<br>","<br>");
// 3
for(var i=0; i<10; i++){
  document.write( multiply(3,i) + "<br>" );
}
console 命令行工具 X clear

                    
>
console