Snake game problem look the codepen

Hello guys yesterday i finish a snake game for build a portfolio but it doesn’t work, and i can’t find out where is the bug. The snake and food doesn’t apper in the screen, and before of more coding it appear dought.
i’d would thank the help and explanations from you all.

  1. Open the browser console and look at the errors.

  2. You are using import/export in what is essentially a single file. If you want to keep the original project structure I would suggest using StackBlitz.

  3. You have the same identifier multiple times, e.g. update. You can’t have three functions all named the same in the same scope.