puts(1+1) // addition
puts(1-1)
puts(1/2) // prints 0
puts(1/2.0) // prints 0.5
/*
operations:
int [op] float -> float
float [op] int -> float
int [op] int -> int
float [op] float -> float
*/
puts(3*3.1)
puts("hi"*3) // prints hihihi
puts(2**3) // prints 8 (power)
puts(!!5) // prints 120 (factorial)
/*
boolean data types:
0 means false
any other number means true
*/
x = "hi" === 3 // === tests if the 2 values have the same type
puts(x) // prints 0 because the "hi" !== 3 !
/*
=== console output: ===
2
0
0
0.500000
9.299999
hihihi
8
120
0
*/