Is this a requirement or a convention? If it\'s a convention what\'s the reason? Ctx doesn\'t seem especially memorable or intuitive.
e.g.
var ctx =
Propably because the examples are teaching something, and who wrote wanted to make sure the reader knows ctx is the canvas context since ctx is an abreviation of context, but it's too boring to write "context" when you could just write "ctx".