Operators
Arithmetic includes ~/ for integer division. Also type test operators is, is! and as.
Example
print(7 / 2);
print(7 ~/ 2);
print(7 % 2);
var x = 5;
x += 3;
print(x);
print(x is int);
print(1 < 2 && 3 > 2);Exercise
Integer division.
7 2
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.