我是第一次尝试返回功能。以下代码行不显示任何输出。我试图弄清楚我的代码有什么问题。我很感激你的意见。
def favourite_drink name
if name == "tea"
return "I love tea too!"
end
if name == "lemonade"
return "Stuff's refreshing, isn't it?"
end
if name == "coffee"
return "Dude, don't have too much of that stuff!"
end
"So what exactly is it that you like? (scratches head)"
end
favourite_drink "tea"