What does the following function do?
function doFun3(q) {
// Enqueue is equivalent to push, Dequeue is equivalent to shift
if (q. length > 0) {
var i = q. shift();
doFun3(q);
q. push(i);
}
return q;
}
A. Nothing
B. Reverses the order of the elements in q
C. deletes and readds the elements to q (leaving q unchanged)
D. Empties the q

Q&A Education