document.getElementById("MyCanvas"); , i'm new and there are alot of things i do not know, how do ppl know when to use what with what method , e.g. when using getElementByID .. its always ("MyCanvas") , or when using getContext... always "2d"... how do ppl know what is the word for those method..
you can give a element an id:
so you create the name for the element to select with getElementById. If you don't know id's, you might want to read a bit about them