Created
January 5, 2016 16:24
-
-
Save toddseller/85d40ad961f15ccb25f9 to your computer and use it in GitHub Desktop.
JavaScript Example 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.cards = []; | |
var suits = ['C','D','H','S']; | |
for(var i = 2; i < 15; i++) { | |
for (var j = 0; j < suits.length; j++) { | |
this.cards.push(i + '_' + suits[j]); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment