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 Foundations Strings Basics

Yusuf Salaam
Yusuf Salaam
1,748 Points

A string challenge

I think ive did the code right but a eror message keeps telling be to "make sure I but the backslash is before the or", so i looked for or but I couldnt find it anywhere

2 Answers

Hi Yusuf,

I just did this last night and got the same (nonsensical) error. All they're looking for you to do is something like 'She said "I can\'t remember what went here" to me.'

Jacob Miller
Jacob Miller
12,466 Points

Don't know why the error message says that, but just make sure you put the backslashes in. You code should look like like this: var statement = 'She said "How\'s the family?"' or this var statement = "She said \"How\'s the family?\""