Student wants to use onEvent that calls a function then the click “targetID” as a parameter of the event. Is acceptable to use for written response?
“click” is student developed procedure.
onEvent (“gameScreen”, “click”, function (event) {
click (event.targetID);
});