We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a74325 commit a3d8899Copy full SHA for a3d8899
index.js
@@ -14,7 +14,7 @@ addCardButton.addEventListener("click", () => {
14
cards.push({ name: name, rarity: rarity }); //add card to list of cards in collection
15
output.innerText = `Number of cards: ${cards.length}\n${JSON.stringify(cards, null, 2)}`; //update output text
16
nameElement.value = ""; //clear name value
17
- rarityOption.value = "common"; //reset rarity value
+ rarityOption.value = "common"; //reset rarity value to default value
18
});
19
generateRandomCardButton.addEventListener("click", () => {
20
//when generate random card button is pressed
0 commit comments