- Joined
- Mar 19, 2018
- Messages
- 22
- Reaction score
- 5
- First Language
- English
- Primarily Uses
- RMMV
So i was looking around and i found this
for (var i = 0; i < $targetCardPlayer.hand.length; i++) {
var card = $targetCardPlayer.hand;
$calc.list.push(card);
}
This is a code for a card game and that it shows me the opponent's hand. So I'm wondering how to read this javascript.
var card = $targetCardPlayer.hand;
$calc.list.push(card);
is read.
for (var i = 0; i < $targetCardPlayer.hand.length; i++) {
var card = $targetCardPlayer.hand;
$calc.list.push(card);
}
This is a code for a card game and that it shows me the opponent's hand. So I'm wondering how to read this javascript.
- I know var i =0 which is less than the opponent's hand and repeat for i++ for every other card in the opponent's hand.
var card = $targetCardPlayer.hand;
$calc.list.push(card);
is read.


