var | Sololearn: Learn to code for FREE!



ctx=c.getContext("2d"); can someone kindly help me find out what is the 2d stand for?why we can't put another number in? and is the var stand for values? thanks to every teacher.

8/5/2016 6:32:43 AM


4 Answers

New Answer


2d is 2 dimentions. you can use getContext('webgl'). var is a variable, a variabla recive a value. this value can be a number, string etc


what is getContext('webgl'). sorry?



he just want to make things more complicated just use 2d because we are in HTML i mean you have just two coordinates(x,y) not Autocad to use 3d or cinema4d.