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

Javascript Basics code challenge forward slash\\\??? is this code challenge just broken?

I think the code challenge is broken. Any thoughts?

4 Answers

Calvin Nix
Calvin Nix
43,828 Points

No the code challenge is not broken. I just completed it to verify.

Please check out the question again and then think about the quotation marks and what they are doing as far as defining what the string is.

I have my solution if necessary but this code challenge is a really good learning experience, so I think it is better if I didn't give you the answer. I will though if you hit a wall.

I checked to see if it would work in my text editor. and it worked just fine in the google chrome browser.

syntax:

var statement = "She said, 'How\'s the family?'"

and got no errors.

Calvin Nix
Calvin Nix
43,828 Points

The challenge ask you for this input: She said, "How's the family?"

I'm guessing it is being picky about your format, since technically using a single quote is not what they were looking for when quoting was she said.

it's the comma. i kept putting a comma behind said. smh. thanks for your help

it's the comma. i kept putting a comma behind said. smh. thanks for your help