title: Javascript Array Shorthand
body: <p>I just wanted to know if there was a shorthand way of writing this code: </p>
  
  <pre><code>allJobs[0].style.display = 'none';
  allJobs[1].style.display = 'none';
  allJobs[3].style.display = 'none';
  </code></pre>
  
  <p>I tried this way but it only ever hides the last value not the ones before it:</p>
  
  <pre><code>allJobs[0, 1, 3].style.display = 'none';
  </code></pre>
  
  <p>Im cant really use the classic for loop solution i don't think because some of the array elements are skipped out and displayed.
  Thanks. </p>
  
  <p><strong>Edit:</strong> 
  I have more than 3 display nones i just wanted to make the question simple, im not that lazy to write 3 lines! </p>