// n개의 요소를 가진 배열 생성하기
const arr = Array(n);

// 배열에 동일한 데이터 채우기
// 모든 요소를 5로 채울 경우
arr.fill(5);

 

+ Recent posts