MCQs > IT & Programming > HTML 5 > Consider the following JavaScript code: var c=document.getElementById('myCanvas'); var ctx=c.getContext('2d'); var img=document.getElementById('img'); Which method will correctly draw an image in the x=10, y=10 position?

HTML 5 MCQs

Consider the following JavaScript code: var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); var img=document.getElementById("img"); Which method will correctly draw an image in the x=10, y=10 position?

Answer

Correct Answer: ctx.drawImage(img,10,10);

Explanation:

Note: This Question is unanswered, help us to find answer for this one

HTML 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

HTML 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it