7.
1 onEvent("topButton",
2 console.log (apple"
3
4 console.log("banana"
5 onEvent("bottomButton", "click", function
6
7
8 console.log "dragon fruit");
The following program is run. Then the user clicks the "bottomButton" TWO TIMES. What will be displayed in the console?
console.log "cherry
};
"click", function
apple banana cherry cherry dragon fruit
A.
B. banana dragon fruit cherry cherry
C.
banana dragon fruit apple apple
D.
banana cherry cherry dragon fruit