Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JavaScript Duplicate Empty Boxes Produced by a loop
- for(d = 0; d < lotteryNums.length; d++) {
- for(x = 0; x < quickDrawNums.length; x++) {
- if(lotteryNums[d] == quickDrawNums[x]) {
- quickDrawNums[x] = "<span class='winner'>" + quickDrawNums[x] + "</span>";
- winCounter++;
- } else {
- quickDrawNums[x] = "<span class='number'>" + quickDrawNums[x] + "</span>";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment