Built in Types
int, double, num, String, bool, List, Set, Map and dynamic. All values are objects.
Example
int i = 7;
double d = 2.5;
num n = 3;
String s = "text";
bool b = true;
print("$i $d $n $s $b");
print(i.runtimeType);Exercise
Either int or double.
n = 3;Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.