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


shannon sivertsen
shannon sivertsen
8,258 Points


Please help! I feel like I can't continue until I get unblocked. I'm struggling with: Order of Javascript sequence Why are certain things put in quotes and some things are not (except strings, I get that) Why sometimes LI, or UL or BUTTON are put in caps

Why this still looks overwhelming.

I feel like I can't go on without knowing these things. Thank you!

1 Answer

Hi Shannon, When things/words are not put in quotes in JavaScript it means that they are either programmer reserved words which are known as variables. These have already been declared using the var, const or let keyword as a result JavaScript treats them as reserved words on that program. Next, we have language reserved words known as keywords, the examples of these are: new, class, while e.t.c.

Now characters enclosed in quotes are known as strings. This are mostly assigned to variables(programmer reserved/declared words) or executed e.g printed to the console as they are.

When declaring HTML tags you can either use UPPER or lower case. They are all allowed. However, it is good practise to use lower casing. Just like single or double quotes being valid but it is recommended to stick to one.

Checkout this link below. I hope my explanation helps. Feel free to comment if you still have issues. https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByTagName#Notes