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 trialChristian Achleitner
789 Pointsquiz 3 of 5, i don't understand the question with the quotes. What should i do?! I don't get it ...
quiz 3 of 5, i don't understand the question with the quotes. What should i do?! I don't get it ...
3 Answers
Viktor Doska
2,138 PointsIt would be much easier for people to help you if you would just show us what exactly you dont understand. Can you please provide the question itself?
Iagor Moraes
18,678 Pointsthe questions is random, take the precise question.
Viktor Doska
2,138 PointsIf I understand you right, you are talking about a question where you need to escape ' quote with a backslash.
var string = 'That's your example';
Problem with this code is that as soon as your browser gets to the Second quote ('), it thinks that should be the end of the string and expects the ; But it sees a set of strange characters and stops working To prevent that you should escape it with a backslash \ Then the browser can understand that it's not the end of the line, just another symbol So the right answer would be
var string = 'That\'s your example';