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 trialjonathan amador
Full Stack JavaScript Techdegree Student 6,154 PointsWhat 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
var statement = ' she said "How\'s the family" '
2 Answers
Samuel Webb
25,370 PointsThe 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?"';
jonathan amador
Full Stack JavaScript Techdegree Student 6,154 PointsThanks Samuel... yes the your solution helps me alot :)
Samuel Webb
25,370 PointsNo problem. Glad to help.
Samuel Webb
25,370 PointsSamuel Webb
25,370 PointsAlso, 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.