JavaScript | Variables and Data Types | Question 8

Last Updated :
Discuss
Comments

Which of the following is a valid way to interpolate a variable into a string?

"My age is " + age;

My age is ${age};

"My age is ${age}";

Both a and b

Share your thoughts in the comments