DOCTYPE html> 게임 function Lotto(){ this.count = 7; this.nums = new Array(); this.bonusNum = 0; this.getNums = function(){ let set = new Set(); while(set.size < this.count){ set.add( parseInt(Math.random()*45) + 1 ) } this.nums = Array.from(set); // set을 배열로... this.bonusNum = this.nums[this.nums.length - 1]; //7번째 숫자를 보너스 넘으로 this.nums.pop(); //마지막 요소 제거 return this.nums; } this.getColor = funct..