Every recursive function should have an exit criterion (=handling the base case) to exit the recursion.
Without it, it wil recurse forever, until system resources run out (typically the call stack will overflow and your program will crash).
<span>C. when listing items that have an order of priority
</span>
Answer:
Hey mate.....
Explanation:
This is ur answer.....
<em>To remove the last n elements from an array, use arr. splice(-n) (note the "p" in "splice"). The return value will be a new array containing the removed elements.</em>
<em />
Hope it helps!
Mark me brainliest pls.....
FOLLOW ME! :)