JavaScript에서의 동적 다중 임포트

한 번에 여러 모듈을 동적으로 임포트할 수 있습니다:

src/index.jsbtn.addEventListener('click', function() {
  Promise.all([
    import('./module1.js'),
    import('./module2.js'),
    import('./module3.js'),
  ])
  .then(([module1, module2, module3]) => {
    
  });
});
Задание 1

요일 이름 배열이 있는 모듈과 월 이름이 있는 모듈을 만드세요.

Задание 2

버튼을 클릭하면 이 모듈들을 임포트하세요. 요일과 월 이름을 ul 목록으로 출력하세요.