Dynamic multiple import in JavaScript

You can dynamically import multiple modules at once:

btn.addEventListener('click', function() { Promise.all([ import('./module1.js'), import('./module2.js'), import('./module3.js'), ]) .then(([module1, module2, module3]) => { }); });

Create a module with an array of the week days names and a module with the months names.

By clicking on a button, import these modules. Print the names of days and months as ul lists.