Javascript If statement-change color

This post was flagged by the community and is temporarily hidden.

First off, please don’t show pictures of code, post the code. You can put three backticks on the line before and three on the line after to format it well.

So, you are selecting an element with an id of “h1”. Do you have an element with that id? Look closely.