I know in PHP we can do something like this:
$hello = \"foo\"; $my_string = \"I pity the $hello\";
Output: \"I pity the foo\"<
\"I pity the foo\"
If you like to write CoffeeScript you could do:
hello = "foo" my_string = "I pity the #{hello}"
CoffeeScript actually IS javascript, but with a much better syntax.
For an overview of CoffeeScript check this beginner's guide.