HOTSPOT
An HTML page has a canvas element. You need to drawa red rectangle on the canvas element dynamically.
The rectangle should resemble the following graphic.
How should you build the code segment? (To answer, select the appropriate options from the drop- down lists in the answer area.)
A.
http://www.w3schools.com/canvas/canvas_drawing.asp
It’s important the order. If you set first fillRect insted of fillStyle, the rect will be black. You can try http://www.w3schools.com/canvas/tryit.asp?filename=trycanvas_draw
It’s easy way to remember the order: first – as in the real picture painting – get the brush with a color, then draw.