Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node js variable inside string

var my_name = 'John';
var s = `hello ${my_name}, how are you doing`;
console.log(s); // prints hello John, how are you doing
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #node #js #variable #string
ADD COMMENT
Topic
Name
4+4 =