nick34992
3/15/2017 - 9:14 PM

JavaScript Concatinate

JavaScript Concatinate

var a = 2;
var b = 4;

// template literal
console.log( `Sum of values: ${a+b}; 
Multiplication of values: ${a*b}` );

console.log( "Sum of values: " + (a+b) + "; Multiplication of values: " + (a*b) );