pro tip: no longer necessary
{ let count = 50; const interval = setInterval(() => { addSnakeNode(); if (--count <= 0) clearInterval(interval); }, 100) }
And polluting the global variable namespace hardly matters when using the console.
And polluting the global variable namespace hardly matters when using the console.