Skip to content

Instantly share code, notes, and snippets.

{
"schemaVersion": 1,
"label": "React Coverage",
"message": "0%",
"color": "red"
}
@hystolytc
hystolytc / DeckOfCards.js
Last active April 25, 2017 09:56
This is DeckOfCard code
class DeckOfCards {
constructor(){
let cardType = ['SPADE','DIAMOND','HEART','SCOPE']
let cardList = [2,3,4,5,6,7,8,9,10,'J','Q','K','A']
this.deckOfCard = []
this.availableCard = []
cardType.map(type => {
cardList.map(list => this.deckOfCard.push([type, list])
)})
}