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 trialAlan Mills
31,712 PointsQuestion about escape characters in Workspaces and parsing this very same JSON data
If I were to add to this project, and Parse the C# points into my message string, how can I append this field into my printMessage function parameters? The JSON field for JavaScript points is simply => JavaScript. But for C#, it's in single-quotes => 'C#'. Is there an escape character in Workspaces? Or is there another work around? Thanks!
1 Answer
Ian Ostrom
Full Stack JavaScript Techdegree Student 10,332 PointsAlan Mills try accessing it this way:
printMessage(username, profile.badges.length, profile.points["C#"])