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 Node.js Basics 2017 Building a Command Line Application Parsing JSON

Retrieve the data for Javascript points using my personal profile as an example.

Hi there, I believe I understand most of the parts of this course, however, I am not able to retrieve my Javascript points. It's printed as undefined. https://w.trhou.se/xygrx46d5a Thanks in advance!

1 Answer

Steven Parker
Steven Parker
231,261 Points

There are several issues in the snapshot code:

  • the code attempts to fetch data for the username "ali", but your actual username is "marniali"
  • the raw data is being logged
  • the code to parse the data has not been added yet
  • the code to print the JavaScript points using the parsed data has not been added yet

Oh yessss! Thanks Steven!!