How to convert a string to lowercase in Ruby
To convert a string to lowercase we can use the downcase
in ruby.
Here is an example that converts the string CAR IS RED
to lowercase.
"CAR IS RED".downcase #=> "car is red"
To convert a string to lowercase we can use the downcase
in ruby.
Here is an example that converts the string CAR IS RED
to lowercase.
"CAR IS RED".downcase #=> "car is red"