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

Strings 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

could you post a link to the challenge please?

3 Answers

it 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)

yay, now it works!)) thanx for such quick help :)

try removing the console.log statement (the challenge didnt ask for it, so it could be causing problems)

tried that

still doesn't work(

could you post a link to the challenge?