From 5c428750bbadfe025c5f1e1afc12ef4b74686c7a Mon Sep 17 00:00:00 2001 From: vilmibm Date: Tue, 24 Nov 2020 22:52:31 -0800 Subject: [PATCH] consts --- tarot.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tarot.js b/tarot.js index c9db18e..ae20769 100644 --- a/tarot.js +++ b/tarot.js @@ -40,7 +40,7 @@ class Tarot { } drawCard() { - let cardName = this.deck.random(); + const cardName = this.deck.random(); if (cardName === null) { this.render(); return; @@ -89,8 +89,8 @@ class Tarot { continue; } - let bp = document.querySelector(".card.blueprint"); - let cardElem = bp.cloneNode(true); + const bp = document.querySelector(".card.blueprint"); + const cardElem = bp.cloneNode(true); cardElem.classList.remove("blueprint"); cardElem.setAttribute("data-cardName", cardName) cardElem.setAttribute("style", "float:left; width: 150px; height: 250px; border: 1px solid pink;");