Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

insert variable in string javascript

var a = 5;
var b = 10;
console.log(`Fifteen is ${a + b}.`);
// "Fifteen is 15.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #insert #variable #string #javascript
ADD COMMENT
Topic
Name
7+5 =