Can someone help?

Does anyone know why I get an failure alert everytime I try to run this test?

var myStr = "I am a \"double quoted\"string inside\"double quotes\"."; // Change this line

console.log(myStr);

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

markdown_Forums

Hello, please post a link to the challenge that you are working on.

https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/escaping-literal-quotes-in-strings

Hi @Kenan, take a look at the output of your console.log(). Do you notice there are no spaces between some of the words?

yes, it still doesn´t work

I copied and pasted your code and added spaces and it works. There are two places;
quoted\"string is one that needs a space
inside\"double is another that needs a space

1 Like