JS::함수2
by Kim Ara
JavaScript
// 함수를 생성합니다.
function f(x){
return x + x;
}
// 함수를 호출합니다.
document.write( f(3) + '<br>' );
function f(y){
return y + y;
}
document.write( f(5) );
by Kim Ara
// 함수를 생성합니다.
function f(x){
return x + x;
}
// 함수를 호출합니다.
document.write( f(3) + '<br>' );
function f(y){
return y + y;
}
document.write( f(5) );