Tell us what’s happening:
Describe your issue in detail here.
HI, I feel like I am putting the answer in correctly but its just not working.
Your code so far
const myStr =I am a \"double quoted\" string inside \"double quotes\""; // 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/105.0.0.0 Safari/537.36
Challenge: Basic JavaScript - Escaping Literal Quotes in Strings
Link to the challenge:
hbar1st
September 20, 2022, 1:35am
2
when defining a string literal in javascript, what important character do we need to have surrounding the string?
example from the exercise:
const sampleStr = "Alan said, \"Peter is learning JavaScript\".";
and here is your code
const myStr =I am a \"double quoted\" string inside \"double quotes\""; // Change this line
Hint: what should come to the right of the equal sign?
Edit: also don’t forget the period at the end of the sentence.
hbar1st
September 21, 2022, 2:08pm
4
no need to post solutions in the forum (we are trying to prevent copy-paste of fCC challenge code).
I guess you are good? (Quickest way to indicate that is to mark the post that has helped you to find a solution with the Solution mark.)
system
Closed
March 23, 2023, 2:09am
5
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.