So I have this code that deletes options from a select (0-23) but it's only deleting 0 and odd numbers. The options that remain are 2, 6 , 10, 14, 18, 22.
The goal is to delete all options in the for
Code:

```
var x = 0; 
var select = document.getElementById("hour");
var length = select.options.length;
for (x = 0; x < length; x++) {
    select.options[x] = null;
};

```