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