What is a method?
Methods are procedures for modifying data. They allow us to move our data, perform calculations, convert between different data types, and do many other things.
What does the .to_i method do?
to_i converts data that can be represented as an integer into an integer. So far, we've learned that it can convert a string version of an integer into an integer. "3".to_i => 3.
What will be the output of the following?
puts("123".to_i + 5) 12 != 6 puts("HI!")