String template ( $ )
Embeds a variable/expression into text.
Syntax
"... $variable ..." // "${expression}"Description
Inside double quotes, $variable is interpolated directly, and ${...} for an expression.
Example
Loading editor…
This language is for reference/learning only — copy the code and try it in your own environment.
Expected output
Alex 36 years old Future: 37
When to use?
Printing variables by combining them with text.