s = \'hello %s, how are you doing\' % (my_name)
That\'s how you do it in python. How can you do that in javascript/node.js?
With Node.js v4 , you can use ES6's Template strings
v4
var my_name = 'John'; var s = `hello ${my_name}, how are you doing`; console.log(s); // prints hello John, how are you doing
You need to wrap string within backtick ` instead of '
`
'