Lets say I have a Javascript function that adds two numbers as follows
function addNumbers(a, b){
return a+b;
}
Then I want to output to the console the result of calling the function with two numbers. When using string concatenation I can do the following:
console.log('The sum of two numbers is' +
addNumbers(a, b));
However, my question is how do I call the function if I want to use string interpolation? Something like:
console.log(`the sum of two numbers
is addNumbers(a, b)`);