How do i do this :P

Tell us what’s happening:

Your code so far


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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36.

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

You’re missing the full stop at the end. You have quotes\"" and you should have quotes\"."

Happens to the best of us

i have try it but it dos not work idk why ??

What is your updated code?

well i just add what bob says i add th “.” to my code insted of “”

So what is the current full code? It’s really hard to help without seeing the code.

it is

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

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.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

It looks like you accidentally removed the slash before your second to last quotation mark.

oooo i dit not se that i spent soo long stuk thx

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.