Beware mutation
Can you spot the problem here?    let sum = 0; for (i = 0; i &lt; 10; i++) {   setTimeout(() =&gt;...
Tags: mutation, programming, bug, distributedsystems