title: JavaScript - get array element fulfilling a condition
body: <p>I'm learning JavaScript using W3C and I didn't find an answer to this question.</p>
  
  <p>I'm trying to make some manipulations on array elements which fulfill some condition.</p>
  
  <p>Is there a way to do it other than running on the array elements in for loop?
  Maybe something like (in other languages):</p>
  
  <pre><code>foreach (object t in tArray)
     if (t follows some condition...) t++;
  </code></pre>
  
  <p>another thing, sometimes I want to use the element's value and sometimes I want to use it as a reference. what is the syntactical difference?</p>
  
  <p>As well, I'll be happy for recommendations on more extensive sites to learn JavaScript from.
  thanks</p>