title: How to get even array index and change it background color
body: <p>Right now i want to write a function to get the even array index and dynamically change it background color</p>
  
  <p><a href="https://i.stack.imgur.com/185uJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/185uJ.png" alt="enter image description here"></a></p>
  
  <p>Just like the image show above i want select the list item and change it background image. </p>