title: Determine value using array index with modulus operator
body: <p>I hate maths. I could sit here for the next few hours trying to work this out but I'd hoped someone with half a brain might be able to help me with this basic math problem using modulus.</p>
  
  <pre><code>let bricks = [{id: 1}, {id: 2}, {id: 3}, {id: 4}, {id: 5}]; // ...etc
  
  for (var i = 0; i &lt; bricks.length; i++) {
    // determine colour using modulus
    bricks[i].colour = help;
  }
  </code></pre>
  
  <p>I need the first brick to be red, the second brick to be green and the third brick to be blue. And then repeat that pattern for as many items as there are in the bricks array.</p>
  
  <p>A somewhat embarrassing question, but any help would be very much appreciated!</p>