Basic JavaScript - Escaping Literal Quotes in Strings

Tell us what’s happening:
Describe your issue in detail here.
I’m having trouble understanding why . in my code is qouted.

Your code so far

const myStr = "I am a \"double qouted\" string inside \"double qoutes\"."; 
// Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Basic JavaScript - Escaping Literal Quotes in Strings

Link to the challenge:

Welcome to our community!

The period in your code is not quoted. The \"double qoutes\" is put in double quotes. The period goes after those two words, and then, you have the closing double quote that closes the whole quoted sentence from the right side.

You’ve got the u and o mixed-up.

These were to only two things I needed to fix in order for your code to pass.

Thank you so much for the reply.
This is the code i’ve put in.
It still shows the that ‘period’ is qouted.

“I am a "double quoted" string inside "doubles quotes".”

Result = “I am a “double quoted” string inside “doubles quotes”.”

You need to paste your code in here properly so that we can see the actual code.

To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key. You may also be able to use Ctrl+e to automatically give you the triple back ticks while you are typing in the this editor and the cursor is on a line by itself. Alternatively, with the cursor on a line by itself, you can use the </> button above the editor to add the triple back ticks.

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