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

JavaScript DOM Scripting By Example Adding and Removing Names Removing Names

Jessica Barnett
Jessica Barnett
4,468 Points

Why 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

It is an acronym for List Item.

I 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
Jessica Barnett
4,468 Points

Ohhh 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.