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 Loops, Arrays and Objects Tracking Data Using Objects The Student Record Search Challenge Solution

Can Anyone please tell me whats wrong with my extra challenge code.?

Can Anyone please tell me whats wrong with my extra challenge code.?

Here is the snapshot: https://w.trhou.se/s4pwx1a3wm

3 Answers

on the first line of the students_report.js file you have a typo. U typed vvar instead of var.

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! Here is what I see so far. And I get down to the third error, but I'm not sure exactly what you're trying to accomplish so I don't have a definitive answer for what you are looking for.

However, on line #1 of students_report js you have written:

vvar isntead of var, which is causing a syntax error

Your getStudentReport function is missing a closing curly brace }, which means that the while that is calling it is located inside the function.

You never initalize the student variable to hold an array so when you hit this line:

 student.push( students[i].names.toLowerCase() );

... you are unable to push to it. Because you can't use a push method on an undefined object.

Try correcting these 3 things and then seeing if you can move forward! :sparkles:

I am trying to accomplish the extra challenges that has been told in the video. I have fixed them and its still not working: https://w.trhou.se/hw5lza7zbu

Can you please help me out.

I am trying to accomplish the extra challenges that has been told in the video. I have fixed them and its still not working: https://w.trhou.se/hw5lza7zbu

Can you please help me out.