title: How the loop is break if it get negative number from an array?
body: <p>here is an array like</p>
  <pre><code>   const arr = [1, 2, 3, -4, -5, 6, 7, 8, 9];
  </code></pre>
  <p>now I want to read the all element from this array by for looping. but when the element reach to <strong>-4</strong>, then the loop will break automatically. how can I do it by for looping?</p>