var | Sololearn: Learn to code for FREE!

0

var

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

Kemp

4 Answers

New Answer

+2

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

+1

what is getContext('webgl'). sorry?

0

0

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.