Tell us what’s happening:
Tell me what I did wrong
Your code so far
var myStr = " I am a /" double quoted /" string inside /" double quotes/".";
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 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.
Hey @Maxwell14 ,
The syntax /(forward slash)
is not the same as \(backslash)
. The \(backslash)
is the syntax used for escaping characters, while the /(forward slash)
just acts like a normal text inside a string.
1 Like
You have a forward slash / instead of a back slash \ .
1 Like
@JeremyLT @ I think you switched the slashes around (forward slash /
, backslash \
)
¯\_(ツ)_/¯
Escape notation:
Damn, thanks for catching that. Fixed.