I Need to write a for loop like below mention way ie:

```
var array = [1,2,3,4,5,6,7];

var startday=5
var endday=1

 for(var k=startday;k>endday;k++){

   }

```

and my output would be like : 5,6,7,1

I have tried the code but the values are coming like 5,6,7,8,9.......