Patterns, Security and Interviews
Functional and design patterns, performance, defensive web security, Web Components, interview deep dives, and a capstone task app built step by step.
This phase pulls the whole course together. First come the patterns professionals use to keep code small and easy to change: functional ideas like immutability, composition and currying, then the classic design patterns as they look in JavaScript (module, observer, factory, singleton, strategy). After that you learn to make code fast the honest way: measure first, then remove work.
Next is web security for JavaScript developers, taught defensively: what cross-site scripting (XSS) and cross-site request forgery (CSRF) are, which DOM APIs are safe, how a Content Security Policy limits the damage, and how to check that your defences work. Then Web Components: your own HTML tags with custom elements, shadow DOM, templates and slots.
The last part prepares you for interviews and for real work. Two deep dives turn scope, closures, this, hoisting, the event loop and promises into classic "what does this print?" questions, each a live example you can run. The capstone then builds a complete task app step by step: state, rendering, events and localStorage, using ideas from every earlier phase.
Practise this phase
Hands-on exercises: write the code, see your page live, and press Check to have it tested automatically.