Skip to content

Commit

Permalink
refactor: rename variable. based on kottans/frontend-2022-homeworks#3…
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyDnepr committed Oct 16, 2022
1 parent 71fc641 commit 8a3b2e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ function resetCardsStage() {
});
}

function generateCardsSet(sizeOfSet, highestNumber) {
function generateCardsSet(sizeOfSet, size) {
let mixedSetOfPairs = [],
setOfPairs = [];
for (let i = 0; i < sizeOfSet / 2; i++) {
const randomNumber = Math.floor(Math.random() * highestNumber);
const randomNumber = Math.floor(Math.random() * size);
if (!setOfPairs.includes(randomNumber)) {
setOfPairs.push(randomNumber, randomNumber);
} else {
Expand Down

0 comments on commit 8a3b2e1

Please sign in to comment.