Why is my Program stuck?

Why is my Program stuck?
0

#1

Hi guys, my program is perpetually loading while spitting out an “unexpected end to input” error.
Whats the issue?

https://codepen.io/Modestas/pen/dzZyrz

Thanks!


#2

That’s almost always a simple syntax error. Check the locations of your }s, )s, and ;s


#3

@ArielLeslie is right. At line 29 you forgot to close a var declaration.

var midwayReset =()=> {
  if (gameOver === false) {
    newColors();
  }  
} <---- missing on your pen