Print command puts nil on the end


I'm going through the puts and print command lesson. When I run the code it's telling me it's right and I can move on but I'm getting a weird output. I put in the following

puts "What's Up?"
print "Oxnard Montavolo"

It's putting out

What's up?
Oxnard Montavolonil

I've tried doing just the print and the just the puts command and it keeps doing this.


nil signifies that the Ruby script is over, print doesn't cause this.


The Ruby console displays the value of the last statement in your program.

puts and print are methods that return the value nil.