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

brayant benitez
7,885 PointsCamelcase
Joy mentioned Camelcase, is it only directed to making the language easier to read or will it cause any impact on the program itself?
1 Answer

Erik Nuber
20,629 PointsIt just makes things easier to read and faster to type. Any way you declare legal variables makes no real difference. It is just common practice to use camel case.
var areallylongvariablenameishardertoread,
aReallyLongVariableNameIsHarderToRead,
a_really_long_variable_name_is_harder_to_read;
all would work just fine.
Domenic Carobine
9,014 PointsDomenic Carobine
9,014 PointsIt's just the convention in JavaScript for naming variables, function, etc. You can use underscores like other languages in JavaScript, but sticking with camelcase will make your code more readable by other JavaScript users.