What does the 'return' keyword do in Ruby methods?
A. Exits the method with a value
B. Prints to console
C. Converts to integer
D. Continues the loop
Answer: Option A
A. Exits the method with a value
B. Prints to console
C. Converts to integer
D. Continues the loop
Answer: Option A
What does the 'puts' method do in Ruby?
A. Prints to console
B. Converts to string
C. Finds the length
D. Reads input from user
Join The Discussion