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

Lvl 6 lss 5

let x = "I love 'Chocolate'\\'Butterscotch' ice cream.";

// log the variable
console.log(x);
i don't what worng in it
by

2 Answers

SKIT
let x = "I love 'Chocolate'\\\'Butterscotch' ice cream.";

// log the variable
console.log(x);
RajLaxmiibpp8
let x = 'I love \'Chocolate\'\\\'Butterscotch\' ice cream.';
console.log(x);
this is the correct output

Login / Signup to Answer the Question.