String interpolation: Difference between revisions

Content deleted Content added
Line 104:
int apples = 4, bananas = 3;
print('I have $apples apples.');
print('I have ${apples+bananas} fruitfruits.');
</syntaxhighlight>
The output will be:
<syntaxhighlight lang="output">I have 4 apples.
I have 7 fruitfruits.</syntaxhighlight>
 
=== Go ===