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

jonathan amador
seal-mask
.a{fill-rule:evenodd;}techdegree
jonathan amador
Full Stack JavaScript Techdegree Student 6,154 Points

What I am doing wrong here? at this challenger?

This is the first challenger of string basic, I am usind \' , it show like do not use it

strings.js
var statement = ' she said "How\'s the family" '

2 Answers

Samuel Webb
Samuel Webb
25,370 Points

The problem is that your text needs to exactly match the example text. So you don't need the space before and after the sentence, as well as you need to capitalize the S in she. It should look like this:

var statement = 'She said "How\'s the family?"';
Samuel Webb
Samuel Webb
25,370 Points

Also, it's not required if you only have a single line of JavaScript, but you should always put the simi-colon(;) after your statements. Helps with creating the habit.

Samuel Webb
Samuel Webb
25,370 Points

No problem. Glad to help.