In php you can use variables inside of double-quotes. eg:
$dog = "scooby";
echo "$dog $dog doo";
Is it possible to do something similar in javascript without breaking the string up into pieces:
var dog = "scooby";
alert($dog + " " + $dog + " doo");
Thanks (in advance) for your help.
No, you can’t. Javascript does not have string interpolation, so you must concatenate: