227k views
7 votes
Looking at the code below, what happens when this onHit function runs?

sjs.onHit("laser",["platform","jump_pad", "powerUp","score","flag"], function(x,y){
sjs.bounceOff(x,y);
});

A) The laser will only bounce off the flag.
B) The laser will only bounce off the platform.
C) The laser will get destroyed.
D) The laser will bounce off each object listed in the array.

2 Answers

5 votes
The answer is b ......
User Halkujabra
by
8.3k points
5 votes
B dxjdbxhxbxbcjxxnxhcbfnc
User Bling
by
7.9k points

Related questions

asked Nov 25, 2024 59.9k views
RuntimeException asked Nov 25, 2024
by RuntimeException
7.4k points
1 answer
5 votes
59.9k views
asked Dec 5, 2024 193k views
Nida Sahar asked Dec 5, 2024
by Nida Sahar
8.1k points
1 answer
0 votes
193k views