let userName = "Kunaal";
let age = 30;
//My name is Kunaal and I am 30 years old//
let text = "My name is ${userName} and I am ${age} years old";
console.log(text);
Expected Output:
My name is Kunaal and I am 30 years old.
Actual Output:
My name is ${userName} and I am ${age} years old.
Use backticks (``) don't use double quotes ("") in your variable
text
:Template_literals