How to convert a string to uppercase in Ruby
To convert a string to uppercase we can use the upcase
in ruby.
Here is an example that converts the string car is blue
to uppercase.
"car is blue".upcase #=> "CAR IS BLUE"
To convert a string to uppercase we can use the upcase
in ruby.
Here is an example that converts the string car is blue
to uppercase.
"car is blue".upcase #=> "CAR IS BLUE"