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 trialMichael Schroeder
2,632 PointsYou mention camel case for the 'FirstName' but you have it as 'firstName'. I think the 'F' should be capitalized?
You mention camel case for the 'FirstName' but you have it as 'firstName'. I think the 'F' should be capitalized?
3 Answers
Jason Anders
Treehouse Moderator 145,860 PointsHey Michael,
John is correct, but to clarify his answer:
In any programming language, "Camel Case" is camelCase. The first letter of the name is always lower-cased and any subsequent words are Upper-Cased. (eg. thisIsWhatCamelCaseLooksLike).
What you are referring to when you Upper-case the first word in the name is called "Pascal Case".
Hope that helps to clear it up. :)
john larson
16,594 PointsIn JavaScript, camel case is always camelCase. CamelCase is something else.
Michael Schroeder
2,632 PointsThank you for the quick response and detailed answers, thank you both.