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 JavaScript and the DOM (Retiring) Making Changes to the DOM Creating New DOM Elements

nishnash
nishnash
6,267 Points

Orange Color Text

Silly question; how come the 'addEventListener' on line 23 didn't change to the color orange like the other event listeners?

2 Answers

Steven Parker
Steven Parker
231,271 Points

:point_right: You may have discovered a bug in the workspace editor.

It sure looks like the syntax coloring didn't mark it correctly. Did you get the same results trying it yourself? And what if you exchange the order of addItemButton and descriptionButton?

If your own experiments confirm the results, you might want to report it as a bug on the Support page.

nishnash
nishnash
6,267 Points

Hey Steven,

Yeah i was getting the same results. I played around with it for a bit yesterday but eventually moved on. Unfortunately I didn't save the files.

Not a big deal. Thanks anyways :)