I'm trying to use the function `getElementById()`.

I have several ID's that i want to change style of, one by one, in an increasing order. I have a variable called `numberOfTimes`, which increases with 1 every time.

The names of the ID's are 1, 2, 3, 4 etc, and up to 8. 

Is there some way I can use the variable-name in the function - if not, how should you solve this?

```
var numberOfTimes = 1;
document.getElementById(1).style.backgroundColor = "green";

```