String interpolation: Difference between revisions

Content deleted Content added
m Haxe: fmt.
Line 152:
const bananas = 3;
console.log(`I have ${apples} apples`);
console.log(`I have ${apples + bananas} fruitfruits`);
</syntaxhighlight>
The output will be:
<syntaxhighlight lang="output">
I have 4 apples
I have 7 fruitfruits
</syntaxhighlight>