Solved

What Happens When the Following Code Executes

Question 16

Multiple Choice

What happens when the following code executes?
<code>ctx.strokeRect(0, 0, 250, 40) ;</code>


A) The JavaScript engine draws the interior of a rectangle whose center is centered in the canvas drawing area.
B) The JavaScript engine draws the interior of a rectangle whose top-left corner is centered in the canvas drawing area.
C) The JavaScript engine draws the border of a 250 x 40 pixel rectangle whose center is centered in the canvas drawing area.
D) The JavaScript engine draws the border of a 250 x 40 pixel rectangle whose top-left corner is at the top-left corner of the canvas drawing area.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions