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

Where is the mistake in my code?

Hello,

I am following through the code challenge solution to try and get my code to work, however when I preview it in the browser, my work is not showing. Can anyone see where my mistake is?

https://w.trhou.se/bz24i183lt

1 Answer

Hi there,

I see that your code in students.js has some errors. At line 8 for Point; '32' , it supposed to be Point: '32'. You used a semicolon instead of a colon. The correct code should be as follow

var students = [

  {
  Name: 'Tracy',
  Track: 'CSS',
  Achievements: '54',
  Points: '32'

  },

  {
  Name: 'Grant',
  Track: 'CSS',
  Achievements: '54',
  Points: '32'

  },
    {
  Name: 'Bella',
  Track: 'CSS',
  Achievements: '54',
  Points: '32'

  },

   {
  Name: 'Isla',
  Track: 'CSS',
  Achievements: '54',
  Points: '32'

  }

]

Thank you!