I found that there\'s a clearRect() method, but can\'t find any to clear an arc (or a full circle).
clearRect()
Is there any way to clear an arc in canvas?
Here's an updated fiddle for you too (uses clearRect): https://jsfiddle.net/x9ztn3vs/2/
It has a clearApple function:
block.prototype.clearApple = function() { ctx.beginPath(); ctx.clearRect(this.x - 6, this.y - 6, 2 * Math.PI, 2 * Math.PI); ctx.closePath(); }