[[pagelist(^JavaScript/)]]
== 11일 ==
* 2011.html
{{{
Javascript
}}}
* gugu.js
{{{
function gugu(dan){
for(var i = 1; i <= 9; i++){
document.write(dan + " X " + i + " = " + (dan * i) + "
");
}
}
function gu(){
for(var i = 2; i <= 9; i++){
gugu(i);
document.write("
");
}
}
function g(){
for(var i = 2; i <= 9; i++){
for(var j = 1; j <= 9; j++){
document.write(i + " X " + j + " = " + (i * j) + "
");
}
document.write("
");
}
}
}}}
* sum.js
{{{
function sum(){
var students = ["지혜", "수경", "정근"];
var score = [{"국어":90, "수학":90},{"국어":90, "수학":40}, {"국어":80, "수학":100}];
for(var i = 0; i < students.length; i++){
// document.write("< " + students[i] + " > " + score[i].);
}
}
function s(){
var score = {"지혜":{"국어":90, "수학":90},"수경":{"국어":90, "수학":40}, "정근":{"국어":80, "수학":100}};
for(i in score){
document.write("<" + i + "> ");
for each(j in i){
document.write(j +" : ");
}
}
}
}}}