What is the role of ! at the end of the capitalize method?
A. It is the syntax for using capitalize method
B. It modifies the value stored in the variable
C. It indicates the termination of string
D. None of the mentioned
Answer: Option B
A. It is the syntax for using capitalize method
B. It modifies the value stored in the variable
C. It indicates the termination of string
D. None of the mentioned
Answer: Option B
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