Making a Snake game and the snake isn't showing up in my browser

I expected this output from my code:

, but I do not get that output.

Here is the link to my code. https://codepen.io/noblegas/pen/dyPbGPb

It isn’t showing because you forgot to declare the ctx variable.

Here it is a link to see how to use the canvas api: https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API

Cheer up and keep learning :grin:!

Thanks, that fixed it!