Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialR. Stephen Lewis III
1,912 PointsWhy does the quiz tell me the "/" is the wrong character to use when escaping the 2nd ' mark?
I remember taking notes that the / character will "nullify" the 2nd quotation mark in the string:
var text = 'She/'s a great person!'
But it doesn't act as if this is the correct answer.
2 Answers
Colin Bell
29,679 PointsBackslash is used to escape characters - \
.
You're using a forward slash.
R. Stephen Lewis III
1,912 PointsOh wow...I feel very silly now. Thanks so much for your answer!
Colin Bell
29,679 PointsNo problem, I used to do the same thing all the time. Started thinking to myself that I'm trying to bring the character back out, so I need to use a back slash. It's worked for me.