Adding numbers


Interpolation can also include embedded expressions. We just need to put them inside curly braces.

examples/dart-intro/adding_numbers.dart
void main() {
    var a = 23;
    var b = 19;
    print(a + b);  // 42

    var c = a + b;
    print(c);      // 42

    print("The sum of $a and $b is ${ a + b }, right?");
}