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 trialJason Anders
Treehouse Moderator 145,860 PointsNumbers 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
Victoria Felice
14,760 PointsI 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!
Marcus Parsons
15,719 PointsHey 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
Marcus Parsons
15,719 PointsMarcus Parsons
15,719 PointsThank you, Victoria, and I agree with you that it was just something they forgot to go back and check.
Victoria Felice
14,760 PointsVictoria Felice
14,760 PointsMarcus, 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!
Marcus Parsons
15,719 PointsMarcus Parsons
15,719 PointsThank 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
Victoria Felice
14,760 PointsVictoria Felice
14,760 PointsSome 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! :)
Marcus Parsons
15,719 PointsMarcus Parsons
15,719 PointsI definitely will, Victoria. Thank you for being awesome! :)