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

Javascript Level 6 Lesson 5 (escape all sequence character).

Question:->
let x = 'I love 'Chocolate'\'Butterscotch' ice cream.';

// log the variable
console.log();

----------------------------------------------------------
//I am trying to submit below code. But it shows me (You missed to escape some special// //character. Please Check again.

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

// log the variable
console.log(x);
by

5 Answers

iamabhishek
We have updated the Instructions for the lesson, please check once and try again.
SaravananRajendran
Ans: the expected output should be string with single slash , so tried by adding another escape character \ to print the string with single \ and I tried without that escape character but still .It shows You missed to escape some special character.
please check again.

please some one help me out this
Preethigtlg5
Same. Stuck at this lesson.
let x = "I love \'Chocolate'\\'Butterscotch\' ice cream.";
This is my code. Shows 'Missed to escape some special character'
Can someone help
catalin
let x = 'I love \'Chocolate\'\\\'Butterscotch\' ice cream.';

// log the variable
console.log(x);
Swathiadngh
let x = 'I love \'Chocolate\'\\\'Butterscotch\' ice cream.';

// log the variable
console.log(x);

Login / Signup to Answer the Question.