diff --git a/exercise/scripts/main.js b/exercise/scripts/main.js index d144fb1..92acc49 100644 --- a/exercise/scripts/main.js +++ b/exercise/scripts/main.js @@ -13,6 +13,7 @@ window.addEventListener('DOMContentLoaded', function() { // If we haven't selected 2 cards yet, add the current card to the // collection of selected cards and apply the correct CSS class. if (selectedCards.length < 2) { + console.log('The number of selected cards is less than 2.') card.classList.add('is-selected'); selectedCards.push(card); }