JSFiddle - React, Tailwind, and code Playground

by gabs00

JavaScript

var Card = function(suit, value){
    this.suit = suit;
    this.value = value;
    this.state = null;
};

var Deck = function(jokers){
    this.dealt = [];
    this.suits = {
        hearts:0,
        clubs:0,
        diamonds:0,
        spades:0,
        jokers:jokers ? 0 : null;
    };
    this.availableSuits = Object.keys(this.suits);
};

Deck.prototype.getCard = function(){
    while
};

var d = new Deck();
d.getCard();