Instruction #4 asks us to add the following code
currentCard = cards[Math.floor(Math.random() * 4)];
However, there is no explanation how this code works or what it is doing. I understand conceptually Math.floor and Math.random, but I don’t understand how they are working together and why it is multiplied by 4
Anybody provide a rundown of this code?