Tell us what’s happening:
its not working,cant pass
Your code so far
var myStr = "I am a "double quoted “string inside “double quotes”.”;
var myStr = "I am a \"double quoted \"string inside \"double quotes\".";
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 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.
nibble
December 25, 2020, 1:06pm
2
Hello @jmnqv123 .
Welcome to FCC.
You have a space where it shouldn’t be
jmnqv123:
\"double quoted \"s
The above should have been \"double quoted\" s
it outputs:
Variable myStr should contain the string: I am a "double quoted" string inside "double quotes".
// tests completed
// console output
myStr = "I am a "double quoted " string inside"double quotes"."
myStr = "I am a "double quoted " string inside"double quotes"."
ilenia
December 25, 2020, 2:06pm
4
there should be a space only at most on one side of the quote
ilenia
December 26, 2020, 8:23am
6
If you notice, in one point of the string you have space
quote
space
, which is never present in the required string shown in description
Tell us what’s happening:
please fix im typing it right its not workng for 3 days
Your code so far
var myStr = "I am a \"double quoted\"string inside\"double quotes\".";
console.log(myStr)
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 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.
This is the correct answer in the console.
I am a “double quoted” string inside “double quotes”.
This is your answer in the console.
I am a “double quoted"string inside"double quotes”.
Can you see the difference?
Can you see the difference with spacing?
If you add one space before string and one space after inside then you will see it looks like the correct answer.
It’s not reading the period after closing statement
ilenia
December 28, 2020, 9:32am
10
no, the issue is missing spaces in your string
I did it but it doesn’t work