Ruby - Basics and Runtime
What will be the output of this Ruby code?
def greet(name)
"Hello, #{name}!"
end
puts greet("Friend")def greet(name)
"Hello, #{name}!"
end
puts greet("Friend")15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions