There is an error in this lesson.
Try console logging background color after the line `var backgroundColor = bodytag.style.background;`
It comes out as all the background attributes (lightgreen none repeat scroll 0% 0%) and can never strictly equal "lightgreen".
Two possible ways to get this code to work would be:
- Change `var backgroundColor = bodytag.style.background;`
to `var backgroundColor = bodytag.style.backgroundColor;`
2. look at startsWith by changing the two comparisons
ie. Change `if (backgroundColor === "lightgreen")` to `if (backgroundColor.startsWith('lightgreen ');`