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 Build an Object Challenge, Part 2

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Numbers or Strings?

In the workspace that opens for this video (as well as in the previous video), the first student object has numbers, but the rest of the student objects, the numbers are strings?

2 Answers

I think that putting numbers in single quotation marks, starting from the second student was just an oversight. Several people were confused by this as well in the previous video questions section. You guys have great attention to details. Good job!

Thank you, Victoria, and I agree with you that it was just something they forgot to go back and check.

Marcus, I am amazed by your responses. I read questions in each section while watching videos and noticed how nice and helpful you always are! Thank you!

Thank you, Victoria! :) I am 99% of the time very nice on here, but there have been a few people who push my buttons on here. I find it's hard to ignore them when they try to discredit what I say when I'm not wrong in my answer. Whenever I'm wrong, I admit fault and am not negative about having criticism directed against me. Even when I was a moderator, I revoked when I was chosen for best answer a few times when someone came in and gave a better solution or proved me wrong.

The reason why I tell you all this is because there are a handful of threads where I don't have the nicest tone after being called out for a reason I can't explain. I need to work on staying nice after dealing with certain types of people for sure lol :P

Some people are just plain haters and can't be pleased no matter what you do. So, don’t worry about them and please continue helping others! :)

I definitely will, Victoria. Thank you for being awesome! :)

Hey Jason,

It's fine that they are mixed data types for this project because you're not doing any manipulation on the number values. If you were doing number manipulation, it would change your code up, but since you're just accessing the values stored and concatenating them to strings, it's fine that they are mixed data types. Although, it is a bit weird that the first set are numbers and the rest are strings lol