JavaScript Default Exports: Complete Tutorial
Default exports let a module share one main value without requiring the importer to know its name. Learn the syntax, patterns, and when to use default vs named exports.
Master JavaScript from basics to advanced
Default exports let a module share one main value without requiring the importer to know its name. Learn the syntax, patterns, and when to use default vs named exports.
Go beyond basic route splitting with shared chunks, vendor extraction, magic comments, and bundle analysis. Learn advanced code splitting patterns that measurably improve load performance.
Tree shaking eliminates unused code from your JavaScript bundles. Learn how bundlers detect dead code, why ES modules are required, and how to configure sideEffects for smaller production builds.
A practical walkthrough for finding and removing dead JavaScript code from your project using tree shaking. Configure your bundler, audit your dependencies, and verify the results.
Learn how to deploy JavaScript applications for free using the GitHub Student Developer Pack. Set up hosting on Vercel or Netlify, connect a custom domain, and go live without spending a cent.
Learn how to test custom MDX components in JavaScript projects. Set up Vitest or Jest to verify your markdown components render correctly and handle edge cases reliably.
A practical reference for JavaScript ES6 module syntax. Learn every import and export pattern, from basic named exports to dynamic imports, with clear examples you can use immediately.
Compare CommonJS and ES modules side by side. Learn the syntax differences, loading behavior, interoperability rules, and when to use each module system in Node.js and the browser.
Classes are templates for creating objects with shared methods and data. Learn how to define a class, write a constructor, add methods, and create instances in JavaScript.
The two prototype properties confuse every JavaScript developer at some point. Learn what each one means, where it lives, and how they connect objects to their shared behavior.
Polymorphism lets different objects respond to the same method name in their own way. Learn method overriding, duck typing, and how JavaScript achieves polymorphic behavior.
The this keyword trips up more JavaScript developers than almost anything else. Learn exactly how this is determined at call time, the binding rules, and how to never guess wrong again.