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.

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:

Cheer up and keep learning :grin:!

Thanks, that fixed it!