Canvas is able to draw the 2D graphics using—————-
Correct answer
C. Java script
13 views
C. Java script
13 views
Canvas draws 2D graphics using JavaScript. The <canvas> tag only reserves an area on the page; a script obtains a drawing context with getContext("2d") and then calls methods such as fillRect(), arc() and drawImage().
HTML, XML and XHTML are markup languages and cannot issue drawing commands.
Want more practice? Try the full set of Computer Science MCQs on MCQsExam.com.
Not sure why the answer is C? Ask here and get an explanation.