
하……
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
or
var a = 1;
var b = 2;
function sum (num1,num2){
return num1+num2;
}
var result = sum(a,b);
하……
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
or
var a = 1;
var b = 2;
function sum (num1,num2){
return num1+num2;
}
var result = sum(a,b);