Thursday , September 19 2024

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:

Questions BankCategory: JavaScript Essentials 1Using 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:
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