setTimeout ✔️ 일정 시간이 지난 후 함수를 실행 // setTimeout 기본 사용법1 function fn(){ console.log(3); } setTimeout(fn, 3000); //3초후 fn 실행 // setTimeout 기본 사용법2 setTimeout(function(){ console.log(3); },3000); //매개변수가 들어갔을 때 function showName(name){ console.log(name); } setTimeout(showName, 3000, 'Kay'); //3초후 Kay를 인수로 넣은 showName 함수 실행 clearInterval() 으로 실행을 종료할 수 있음. setInterval ✔️ 일정 시간 간격으로 함수를 반복 function sh..