|
|
do~while(i < b) |
|
function f1(){ var a = "" var b = 9 i = 1; do{ a = a+=i+" "; i++; }while(i < b) document.getElementById("t1").innerText=a; }
|
|
for(i=cntMin;i<cntMax;i++) |
|
function f2(){ var a = "" var cntMin = 2 var cntMax = 8 for(i=cntMin;i<cntMax;i++) { a = a+=i+" "; } document.getElementById("t2").innerText=a; }
|
|
for(i in window) |
|
function f3(){ a ="" for(i in window) { a = a+=i+" : "+window[i]+"\n\r"; } document.getElementById("t3").innerText=a; }
|
|
<< 前のページへ >> | << 次のページへ >> |