adding a variable to a string without using 2b in javascript

Solutions on MaxInterview for adding a variable to a string without using 2b in javascript by the best coders in the world

showing results for - "adding a variable to a string without using 2b in javascript"
Jordy
15 Aug 2017
1let a = 5;
2let b = 10;
3console.log(`The sum of a and b is ${a+b} and the multiplication is ${a*b}`); 
4// The sum of a and b is 15 and the multiplication is 50