Crystal by example: Values

Values are an important concept in programming, and in Crystal it is no different.

The main values in Crystal are strings, chars, integers, floats, and booleans. There are others, but these are more specific these main values are called primitive types.

puts "My string"
puts 'λ'
puts true && false
puts 77 + 33
puts 3.145 * 2
$ crystal run values.cr
My string
λ
false
110
6.29
Next example: Variables