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 trial

JavaScript JavaScript Basics (Retired) Storing and Tracking Information with Variables Review Strings, Numbers and Spaces

Why 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
Colin Bell
29,679 Points

Backslash is used to escape characters - \.

You're using a forward slash.

Oh wow...I feel very silly now. Thanks so much for your answer!

Colin Bell
Colin Bell
29,679 Points

No 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.