Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Js level 6 lesson 3

let str1 = 'CE';
let str2 = '2253';
let str3 = '2K7';

// join string using +
console.log("CE"+"/"+"2253"+"/"+"2K7");
// use template literal
console.log(`CE/${str2}/2K7`);

when running the OUTPUT the message is saying "Use the + operator to join the string variables to get the desired output."
by

1 Answer

kshitijrana14
try this one :

let str1 = 'CE';
let str2 = '2253';
let str3 = '2K7';

console.log(str1+"/"+str2+"/"+str3);
// use template literal
console.log(`${str1}/${str2}/${str3}`);

Login / Signup to Answer the Question.