Examveda

What does the return keyword do in Ruby methods?

A. Exits the method

B. Returns a value

C. Jumps to the next iteration of the loop

D. Resets the method

Answer: Option B


This Question Belongs to Ruby Programming >> Methods In Ruby

Join The Discussion

Related Questions on Methods in Ruby