Nil?


#1

Why I am getting nil at the end of my interpreted code?

Ex. for
if 7 > 0
print "Seven is greater than zero"
end

It shows in the right box as: Seven is greater than zeronil


#2

We can ignore that extra output. It is a behavior of the console.

If you use puts it will print on its own line.