Examveda

In Ruby, what does the `capitalize` method do when used with strings?

A. Converts the first character to uppercase

B. Converts the entire string to uppercase

C. Converts the first character to lowercase

D. Converts the entire string to lowercase

Answer: Option A


Join The Discussion

Related Questions on Arrays, Hashes and Strings in Ruby