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

Level 6 Lesson 3 javascript

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

// join string using +
console.log(str1 + "/" + str2 + "/" + str3);
// use template literal
console.log(str1 + `/` + str2 + `/` + str3);
by

2 Answers

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.