ychris
October 22, 2020, 10:43am
1
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 (Linux; Android 8.1.0; itel A16 Plus) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Mobile Safari/537.36.
Challenge: Escaping Literal Quotes in Strings
Link to the challenge:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
1 Like
Your spacing is a bit off. Check your results in the console and see where it differs from what the challenge wants.
1 Like
ychris
October 22, 2020, 11:07am
4
Why this message can I know why the message
1 Like
Hi @ychris . Sorry the message I wrote was wrong. That’s why I deleted it.
1 Like
ychris
October 22, 2020, 11:28am
6
I checked but seriously I can’t find the exact place to fix that.is it the space between quote or word space???
The challenge wants this:
Variable myStr should contain the string: I am a "double quoted" string inside "double quotes".
When I copy your code from above into the challenge, I get this:
myStr = "I am a"double quoted"string inside"double quotes"."
Can you see how the two differ?
1 Like
ychris
October 22, 2020, 11:45am
8
Yes I have some time common errors are hard to fixed please how can I fix that simple example is good enough
ILM
October 22, 2020, 11:50am
9
it should be a "double, your code is a"double, so add a space to make them the same
same thing for the rest of the string
1 Like
ychris
October 22, 2020, 12:54pm
10
Please the error persist this is it “I am a //space “double quoted//no space “string inside //space “double qoutes” .” That is those that holds quotes (””) are not space at the end unlike ones without quotes still can’t pass it more help
ILM
October 22, 2020, 1:52pm
11
what’s your current code?
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 (’).
1 Like
ychris
October 22, 2020, 2:16pm
12
Thanks I have passed the test