Engrain by ByteRush

JS.10 4 concepts · 3 ready

Modules

Understand ES modules vs CommonJS and how bundlers use them.

  1. JS.10.01ES modulesCoreJunior10 min
  2. JS.10.02CommonJS vs ESM and interopCoreMid-level11 min
  3. JS.10.03Dynamic import, top-level await and code splittingCoreMid-level10 min
  4. JS.10.04Circular dependencies and tree shakingSeniorBeing written

Interview questions in this module

  1. What is the difference between CommonJS and ES modules?
  2. What is a live binding?
  3. How does tree shaking work and what breaks it?
  4. What happens with circular imports in ESM vs CommonJS?
  5. What does dynamic import() give you?