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\"
Simply use:
var util = require('util'); var value = 15; var s = util.format("The variable value is: %s", value)