title: Want to take alternative numbers of an array and reverse them in Javascript
body: <p>Want to take even numbers from an array and reverse them and Put it again in the place of array again. My Array:</p>
  <pre><code>[1,2,3,4,5,6,7,8]
  </code></pre>
  <p>Required Output: <code>[1,8,3,6,5,4,7,2]</code></p>
  <p>Just want to know logic.Any suggestion
  tell me ?</p>