DOCTYPE html> Math & Random 수학 관련 함수 //1~10 까지의 랜덤 수 생성 let num = Math.floor(Math.random()*10)+1; console.log(num); function getRandom(min,max){ return Math.floor(Math.random()*(max-min+1))+min; } console.log(getRandom(1,20)); //1~20 console.log(String(true), typeof String(true)); //true string