Which of the following is the valid string method?
A. The .length method
B. The .upcase method
C. The .downcase method
D. The .irreverse method
Answer: Option D
A. The .length method
B. The .upcase method
C. The .downcase method
D. The .irreverse method
Answer: Option D
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