Nothing happens and my browser seems to be stuck, what's going on?

Question

Nothing happens and my browser seems to be stuck, what’s going on?

Answer

Make sure that you’re changing the value of your currentCard so that it’ll eventually terminate. If this is not happening then the loop will run forever, leading to a big problem called an infinite loop, read about it in the next exercise.