Hello

Very basic

puts 'Hello, world!'

String concatenation

puts 'Hello, ' + 'world!'

With variables

var hi = 'Hello, '
var world = 'world!'
puts hi + world

Last updated

Was this helpful?