Ruby Ruby Basics Ruby Syntax Review

MaryAnn Eleanya
MaryAnn Eleanya
8,149 Points

I don't understand this question?

When I tried it on workspaces, the only one that returned a value was the puts "hello" , so why is that the correct answer. Also, I am not sure the difference between puts and return.

1 Answer

Jay McGavren
Jay McGavren
Treehouse Teacher

I assume you mean this question:

Which of these methods will NOT return the string "hello"?

You won't be able to understand this question without understanding the difference between puts and return. This link will take you directly to an explanation of these concepts within the preceding video.