There seems to be an error on question 6. I believe the correct answer is being marked incorrect.
> Which of the following options would be an appropriate base case for the given example?
>
> function countDownToZero(number) {
> // Base case goes here.
>
> console.log(number);
> countDownToZero(number - 1);
> }
> if (number < 0) {
> return;
> }
> if (number !== 0) {
> return;
> }
> if (number === 0) {
> return;
> }
>
> if (number > 0) {
> return;
> }`
Correct me if I’m wrong but I believe the correct answer is “if(number === 0) {
return;
}”.
The fact AI gave me the incorrect answer worries me as in previous quiz’ I have encountered incorrect answers as well and used AI to check my answers.