Quiz: String interpolation
Select the strings, where the value of
$x is interpolated exactly one time.
|1||"The temperature is $x degrees"|
|0||'Air pressure is $x mmHg'||No interpolation in single quotes.|
|0||'The value of \$x is $x'||No interpolation and no escaping. It prints
|1||"The value of \$x is $x"||The whole phrase gives, for example,
|0||"The value of $x is $x"||
💪 Or jump directly to the exercises to this section.