title: js slicing even number in array
body: <p>So, I have object which I am splitting, but it is leaving a comma in between.</p>
  
  <p>I thought I would use slice to only select the even number position to ignore the comma:</p>
  
  <pre><code>alert(sample); // first_name|^&amp;|last_name|^&amp;|
  
     var test = sample.split('|^&amp;|');
  </code></pre>
  
  <p>Giving:  <code>first_name,last_name</code></p>
  
  <p>However, the comma is counted as an array and giving me a headache.</p>
  
  <p>So, I thought I would use slice to select only the [0], [2], [4] and so on, thus ignoring the comma.</p>
  
  <p>How do I select only the even number? (<code>var test = sample.split(',').slice(?);</code>)?</p>