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
Sikai Zhang
66 Pointswhat is camel case?
What is camel case?
2 Answers
Cernan Bernardo
17,437 PointsCamel case is how you name your variables using lower case for your first word then capitalizing each subsequent word. For example, if you want to name a variable for the first word in a string, you would name it like this: var firstWord;
here are more examples using camel case:
var numOne; var hoursPerDay;
I hope this helps.
bharath muddada
367 Pointsit's naming convention to make the code readable ......camelCase(first letter of firstword is in lower case and the first letter of subsequent words are in upper case).
examples in our work spaces:
String firstName
String lastName
Ricky Catron
13,023 PointsRicky Catron
13,023 PointsexactlyItIsANamingConventionWhichEnablesProgrammersToMakeNamesSlightlyMoreReadable
Exactly it is a naming convention which enables programmers to make names slightly more readable.
Sorry I couldn't resist...
Goodluck! --Ricky