Reflecting on Exercise 1


Making it stick

Time to put your thinking hats on!

1) What is the difference between puts and print?

2) For big numbers (thousands, millions, billions etc) what is an alternative syntax that ruby provides? Provide an example.

3) What do these methods do? to_s, to_i, puts, gets, chomp

4) What is the programming term when you place a variable inside a string like so: "Author is #{author_age_in_years} years old."

Extra Credit: Explain why in Ruby you can use the "+" operator to add numbers and build strings?

Discusión de la Tarea