Hello Name (variables)
printwill include an empty string between its parametersputswill include a newline between its parameters
name = "Foo Bar"
print "Hello ", name, "!\n"
puts "Hello ", name, "!"
Hello Foo Bar!
Hello
Foo Bar
!
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
print will include an empty string between its parametersputs will include a newline between its parametersname = "Foo Bar"
print "Hello ", name, "!\n"
puts "Hello ", name, "!"
Hello Foo Bar!
Hello
Foo Bar
!