title: Javascript: How to loop through every array's item every second
body: <p>Lets say i have an array like this:</p>
  
  <pre><code>var arr = [0,1,2,3,4];
  </code></pre>
  
  <p>so i want to make a for loop that loops through the array and console logs every item, but i want it to console log separately every item and each item will be console logged a second after the previous item, how can i do this?</p>