Episode 5 - Intro to Methods

Exercises

  1. Use a method that changes the following string into all lowercase:
    "YUrI TOMoko"
  2. What do you expect if you run the method “reverse” on
    "spaceship"
    "racecar"
    1776
    Test your theory and try it yourself.
  3. Fix the code to get the desired output - but this time do not add or eliminate any quotation marks:
    puts 12 * "4"					# should produce => 48
    puts 3 + " times a day"			# should produce => 3 times a day