class Card { color; symbol; points; ace = false; assetUrl; constructor(color, symbol, points, ace, assetBaseUrl = 'img/') { this.color = color; this.symbol = symbol; this.points = points; this.ace = ace; this.assetUrl = this.createAssetPath(assetBaseUrl); } createAssetPath(assetBaseUrl) { return assetBaseUrl + this.color + this.symbol + '.png' } }