JavaScript JavaScript and the DOM 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
172,268 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 :)