Using the string interpolation technique, we can create the string
"I do not like travelling by plane"
and store it in the msg variable using the command:
-
let means = "plane"; let msg = ' I do not like travelling by ${means}';
-
let means = "plane"; let msg = ' I do not like travelling by {means}';
-
let means = "plane"; let msg = " I do not like travelling by ${ means }";
-
let means = "plane"; let msg = " I do not like travelling by \{ means \}";
More Questions: JavaScript Essentials 1 – JSE1: Final Test
Please login or Register to submit your answer