Program
Using Print
print 'Hello, World!'
Using Puts
puts 'Hello, World!'
Output
Hello, World!
Note
- Both print & puts will provide same output.
- Can use both single quote & double quote.
Using Print
print 'Hello, World!'
Using Puts
puts 'Hello, World!'
Hello, World!