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 trialJessica Barnett
4,468 PointsWhy is "li" capitalized in the function name "createLI"?
So far I've only seen function and variable names written in camel case and suddenly "li" is in all caps. Is there a reason for this that I'm missing?
3 Answers
Rick Sheahan
3,862 PointsIt is an acronym for List Item.
nick black
5,578 PointsI think it is just Guil's preference much like other grammar choices within code.
Maybe createLi() looked confusing or not as sweet.
Cheers!
Jessica Barnett
4,468 PointsOhhh I feel silly. I guess I was so used to seeing "li" in lowercase as an html tag I never thought of it as an acronym hah. Thanks guys.