the function at the very bottom of my JS file called “checkForEnd” is not working as intended and I’m not sure why?
basically, all I want it to do is check to see if there are any more cards left in the array and if it’s at the last card then set the array Index back to 0.