Asked by e

What does the mystery function do?

function mystery() {
while (noBallsPresent()) {
move();
}
}
JavaScript


Karel moves until it is on a ball


Karel moves once if there is no ball present


Karel moves until it puts down a ball


Karel checks if there is no ball on the current spot and then moves once

Answers

Answered by e
are you sure
Answered by e
are you sure
Answered by e
so is it a, b, c or d
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions