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...

Match the following terms to their meanings:

I. user types data and is allowed to change the format II. user enters data but is not allowed to change the format III. user picks a choice from a list but then modifies the item name IV. user selects from a list of predefined items V. user selects an item by clicking the box that displays beside the item A. Plain Text control B. Drop-Down List control C. Combo Box control D. Check Box control E. Rich Text control

Computer Science & Information Technology

The random number generator function rand() returns what sort of value to the programmer? What is the minimum and maximum possible values?

What will be an ideal response?

Computer Science & Information Technology