Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript One Solution

whats the problem?

looks like i did almost the same as Guil in the video but get a mistake in the console https://w.trhou.se/hcfrw6dpj4

1 Answer

Steven Parker
Steven Parker
217,627 Points

The Chrome console I'm using pointed directly at the issue:

Uncaught SyntaxError: http://port-80-9tu8a0r7li.treehouse-app.com/app.js: Unexpected token, expected ... (104:19)  
  102 |               diameter={planet.diameter}  
  103 |               moons={planet.moons}  
> 104 |               desc{planet.desc}  
      |                    ^  
  105 |               url={planet.url}

By comparing it with nearby lines, it appears that line 104 is missing a = character between "desc" and the open brace.

thanks, how could not i noticed it by myself...

Steven Parker
Steven Parker
217,627 Points

Sometimes it just takes another pair of eyes.   :eyes:
Happy coding!