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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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