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
Viktoriya Li
3,938 PointsStrings Basics - Challenge #1
have such problem:
Task - In 'strings.js' file define a string called 'statement' with the text of - She said "How's the family?"
My answer: ***javascript
var statement = "She said 'How\'s the family?'";
console.log(statement);
either that's a bug or just i didn't get something
3 Answers
Stone Preston
42,016 Pointsit looks like it wants the Hows the family part in double quotes (you currently have it in single quotes). Try surrounding the string with single quotes and using double quotes around How's the family? (you will stil have to escape the apostrophe)
Viktoriya Li
3,938 Pointsyay, now it works!)) thanx for such quick help :)
Stone Preston
42,016 Pointstry removing the console.log statement (the challenge didnt ask for it, so it could be causing problems)
Viktoriya Li
3,938 Pointstried that
still doesn't work(
Stone Preston
42,016 Pointscould you post a link to the challenge?
Stone Preston
42,016 PointsStone Preston
42,016 Pointscould you post a link to the challenge please?