The HTML5 document shown in Figure 11.27 contains a canvas element and JavaScript that display an image, tree.png, on the canvas.

Fill in the blanks (i)-(iii) to complete the script.



Figure 11.27. Script to be completed


(i) gameCanvas
(ii)myContext
(iii) obstacle

Computer Science & Information Technology

You might also like to view...

MC A(n)______is a type of portal.

a) text filter. b) login screen. c) XHTML table. d) All of the above.

Computer Science & Information Technology

Assume that the waterfall model shown in Figure 15-8 has been derived from the IEEE standard model in Figure 15-7 during the activity Life Cycle Modeling. What processes and activities have been omitted in the waterfall model?

What will be an ideal response?

Computer Science & Information Technology

The Shapes button is located in the ________ group on the Insert tab

Fill in the blank(s) with correct word

Computer Science & Information Technology

Suppose x = 10 and y = 20. The value of the expression ((x >= 10) && (y <= 20)) is true.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology