+ 1
What is var ?
3 Respostas
+ 1
The <var> tag is a phrase tag. It defines a variable.
Supports global and event attributs.
0
<var> is a tag used for declaring a variable. Variable is a temporary storage location which can store particular values assigned to it. These values can be used later when required.
- 1
why is some code written as: var c= document.getElementbyld("canvas1");
var ctx= c.getContext ("2d")
And the next way its written as: var canvas= document.getElementbyld("canvas1")
var ctx= canvas.getContext ("2")
it's not working for me and it looks the same but different..