Skip to content

Instantly share code, notes, and snippets.

@toddseller
Created January 5, 2016 16:24
Show Gist options
  • Save toddseller/85d40ad961f15ccb25f9 to your computer and use it in GitHub Desktop.
Save toddseller/85d40ad961f15ccb25f9 to your computer and use it in GitHub Desktop.
JavaScript Example 1
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