Learn JavaScript
- Lessons
- 162
- Modules out
- 19 of 19
- Parts
- 6
Who can read what
- Free · 45
- Anyone can read it, signed in or not.
- Free with an account · 55
- Free to read once you have an account.
- Pro · 62
- Included with this track or with Learn Pro.
Learn Pro
Every track, one subscription
Every track's Pro lessons and projects
৳6,999 a year
By card: $9 a month or $59 a year.
What is inside
19 modules in 6 parts, 19 of them out so far. Lessons with no mark are free to read.
Part Zero
What JavaScript is
- 1What JavaScript Is (and Why It Is Not Java)Reading
- 2Where It Runs: Browser, Server, Phone, DesktopReading
- 3The Job Market, Honestly: What JavaScript Gets You and What It Does NotReading
- 4How the Engine Runs Your Code: Parse, Bytecode, JITReading
- 5Your First Run: The Console, Node, and the PlaygroundReading
- 6Module Test: What JavaScript IsModule test
- 1A Program Line by Line: console.log, Numbers and TextReading
- 2let and const: A Name for a Value, and Why Not varReading
- 3The Seven Primitives and One ObjectReading
- 4typeof, undefined and null: Asking a Value What It IsReading
- 5Reading Input: The Starter Every Problem Uses, Line by LineReading
- 6Comments, Names and Code a Human Can ReadReading
- 7Problems: First ProgramsProblems
- 8Module Test: First ProgramsModule test
Part One
The language, piece by piece
- 1Two Values Meet an Operator: The PictureReading
- 2Every Operator, One by OneReading
- 3Full Programs: Converting on PurposeReading
- 4When to Use == and When Not, and the Other Judgement CallsReading
- 5Under the Hood: The Abstract Equality Algorithm and Floating PointProReading
- 6Interview Pack: Output Puzzles, the Questions and the Bug GalleryProReading
- 7Problems: Types and CoercionProblems
- 8Cheat Sheet: Types, Operators and Coercion on One PageProReading
- 9Module Test: Types and CoercionModule test
- 1A String Is a Row of Code Units: The PictureReading
- 2Every String Method, One by OneReading
- 3Full Programs: Strings at WorkReading
- 4When to Use Which: Methods or a Loop, a Template or +, and When It Is a RegexReading
- 5Under the Hood: Immutability, Ropes and UTF-16ProReading
- 6CP and Interview Pack: String Patterns, the Questions and the Bug GalleryProReading
- 7Problems: StringsProblems
- 8Cheat Sheet: Strings on One PageProReading
- 9Module Test: StringsModule test
- 1Decisions and Loops: The PictureReading
- 2Every Statement, One by OneReading
- 3Full Programs: From FizzBuzz to a Prime SieveReading
- 4Which Loop, and When switch Beats ifReading
- 5Under the Hood: Loops as Jumps, the Iterator Protocol and a Loop LabProReading
- 6CP and Interview Pack: Nested Loops, Early Exit and the Bug GalleryProReading
- 7Problems: if, switch and LoopsProblems
- 8Cheat Sheet: if, switch and Loops on One PageProReading
- 9Module Test: if, switch and LoopsModule test
Part Two
Functions and data
- 1A Function Is a Named Recipe: The PictureReading
- 2Every Form, One by One: Declarations, Arrows, Defaults and RestFree with an accountReading
- 3Full Programs: A Small Library, Functions as Values and RecursionFree with an accountReading
- 4When to Use Which: Declaration or Arrow, a Default or a Check, Recursion or a LoopFree with an accountReading
- 5Under the Hood: The Call Stack, Frames and What a Call CostsProReading
- 6CP and Interview Pack: Recursion Patterns, Currying and the Bug GalleryProReading
- 7Problems: FunctionsFree with an accountProblems
- 8Cheat Sheet: Functions on One PageProReading
- 9Module Test: FunctionsFree with an accountModule test
- 1Where a Name Lives: Scope and Closures, the PictureReading
- 2Every Rule, One by One: Blocks, var, Hoisting and the Dead ZoneFree with an accountReading
- 3Full Programs: Counters, once, Private State and MemoiseFree with an accountReading
- 4When a Closure, When a Class, When a ModuleFree with an accountReading
- 5Under the Hood: Environment Records, V8 Contexts and a Closure Memory LabProReading
- 6CP and Interview Pack: The Loop Question, Hoisting Puzzles and the Bug GalleryProReading
- 7Problems: Scope, Hoisting and ClosuresFree with an accountProblems
- 8Cheat Sheet: Scope, Hoisting and Closures on One PageProReading
- 9Module Test: Scope, Hoisting and ClosuresFree with an accountModule test
- 1Arrays, the Picture: Ordered Lists and the map, filter, reduce PipelineReading
- 2Every Array Method, One by One, With What It ReturnsFree with an accountReading
- 3Six Full Programs With Arrays, From a Grades Report to a Group-ByFree with an accountReading
- 4When to Use the Pipeline, When to Use a Loop, and How to ChooseFree with an accountReading
- 5Under the Hood: Arrays as Objects, V8's Elements Kinds, and What Holes, shift and Spread CostProReading
- 6The Contest and Interview Pack: Two-Sum, Sliding Windows, Prefix Sums, Flatten and ChunkProReading
- 7Problems: Arrays and the Array MethodsFree with an accountProblems
- 8Cheat Sheet: Every Array Method on One PageProReading
- 9Module Test: Arrays and the Array MethodsFree with an accountModule test
- 1Objects, the Picture: Named Boxes, References and Two Names for One BoxReading
- 2Every Object Operation, One by One: Keys, Copies, Destructuring and JSONFree with an accountReading
- 3Full Programs With Objects: A Contact Book, an Inventory, a Config Merger and JSONFree with an accountReading
- 4When to Use an Object: Against a Map, an Array of Pairs and a ClassFree with an accountReading
- 5Under the Hood: Property Order, Hidden Classes, Inline Caches and the Cost of deleteProReading
- 6The Contest and Interview Pack: Deep Equality, Deep Clone, Flattening and a Bug GalleryProReading
- 7Problems: Objects, Destructuring, Spread and JSONFree with an accountProblems
- 8Cheat Sheet: Every Object Operation and Copy Rule on One PageProReading
- 9Module Test: Objects, Destructuring, Spread and JSONFree with an accountModule test
Part Three
The parts people get wrong
- 1this and Prototypes, the Picture: Decided at the Call, Found up the ChainReading
- 2Every Rule for this, and Every Piece of Class Syntax, One by OneFree with an accountReading
- 3Six Complete Programs Built from Classes: Accounts, Shapes, Events and a Linked ListFree with an accountReading
- 4Class, Closure or Plain Object: Choosing How to Bundle Data with BehaviourFree with an accountReading
- 5Under the Hood: the Chain Walked by Hand, instanceof, and How V8 Sees Class ObjectsProReading
- 6The Interview Pack: this Puzzles, bind by Hand, Mixins and a Bug GalleryProReading
- 7Problems: this, Prototypes and ClassesFree with an accountProblems
- 8Cheat Sheet: Which this, the Prototype Chain and Class Syntax on One PageProReading
- 9Module Test: this, Prototypes and ClassesFree with an accountModule test
- 1Errors, the Picture: throw, catch, and a Call Stack That UnwindsReading
- 2Every Piece of Error Handling, One by One: finally, the Built-in Kinds, Your Own Errors and the Stack TraceFree with an accountReading
- 3Full Programs With Errors: a Parser, a Retry, Validation, Cleanup, an Error Table and a Cause ChainFree with an accountReading
- 4When to Throw and When to Return: Exceptions, null, Result Objects, and What to Let CrashFree with an accountReading
- 5Errors Under the Hood: Completion Records, the Cost of try, and What Building an Error Really CostsProReading
- 6The Errors Pack: Contest Patterns, Six Interview Questions and a Bug GalleryProReading
- 7Problems: Error HandlingFree with an accountProblems
- 8Cheat Sheet: Every Piece of Error Handling and Every Error Kind on One PageProReading
- 9Module Test: Error HandlingFree with an accountModule test
- 1Modules, the Picture: One File, One Scope, and What Crosses Between FilesReading
- 2Every Module Rule, One by One: Exports, Imports, Paths and the Two SystemsFree with an accountReading
- 3Full Programs: a Calculator, a Barrel File, a Circular Import and a Plugin LoaderFree with an accountReading
- 4When to Use Which: Default or Named, a Module or a Class, ES Modules or CommonJSFree with an accountReading
- 5Under the Hood: Live Bindings, the Three Phases, the Module Wrapper and the BundlerProReading
- 6The Interview and Contest Pack: Five Real Differences, Cycle Puzzles and Tree ShakingProReading
- 7Problems: ModulesFree with an accountProblems
- 8Cheat Sheet: Every Export, Import and Module Rule on One PageProReading
- 9Module Test: ModulesFree with an accountModule test
- 1The Event Loop, the Picture: One Thread, a Stack and Two QueuesReading
- 2Every Piece of the Async Toolkit: Timers, Clearing, Microtasks and Callback ShapesFree with an accountReading
- 3Full Programs with Callbacks: a Countdown, a Debounce, a Scheduler, Callback Hell and a Job PoolFree with an accountReading
- 4When to Use Which: a Callback, a Promise or an Event, and setTimeout, setInterval or requestAnimationFrameFree with an accountReading
- 5Under the Hood: libuv, Node's Loop Phases, nextTick, setImmediate and a Starved LoopProReading
- 6The Contest and Interview Pack: Output Puzzles, Debounce and Throttle, Threads and a Timer HeapProReading
- 7Problems: Async 1Free with an accountProblems
- 8Cheat Sheet: the Queues, the Order Rule and Every Timer API on One PageProReading
- 9Module Test: Async 1Free with an accountModule test
- 1Promises, the Picture: A Token for a Value That Comes LaterReading
- 2Every Promise Method, One by One, With What It ReturnsFree with an accountReading
- 3Full Programs: A Fetcher, a Timeout, a Retry, a Progress Loader and a PoolFree with an accountReading
- 4When to Use Which: await or then, all or allSettled, a Pool, or a CallbackFree with an accountReading
- 5Under the Hood: Microtasks, the Turns an await Costs, Thenables and Unhandled RejectionsProReading
- 6The Contest and Interview Pack: Output Puzzles, Promise.all by Hand and a Bug GalleryProReading
- 7Problems: Async 2Free with an accountProblems
- 8Cheat Sheet: Every Promise Method, Combinator and Queue Rule on One PageProReading
- 9Module Test: Async 2Free with an accountModule test
Part Four
The browser
- 1The DOM, the Picture: The Page Is a Tree Your Code Can ChangeReading
- 2Every DOM Tool, One by One, With What It ReturnsFree with an accountReading
- 3Full Page Programs: A Scoreboard, a Todo List, Tabs and a Keyboard ListFree with an accountReading
- 4When to Use Which: Delegation, innerHTML, Data Attributes and ClassesFree with an accountReading
- 5Under the Hood: Reflow, Repaint, Live Lists and BatchingProReading
- 6The Contest and Interview Pack: Delegation, Event Order and the Virtual DOMProReading
- 7Problems: The DOM and EventsFree with an accountProblems
- 8Cheat Sheet: Every DOM Tool, Event Rule and Choice on One PageProReading
- 9Module Test: The DOM and EventsFree with an accountModule test
- 1Forms and Storage, the Picture: A Page That RemembersReading
- 2Every Form, Storage and Date Tool, One by OneFree with an accountReading
- 3Full Programs: A Register, a Note Taker, a Settings Panel and a TimerFree with an accountReading
- 4When to Use localStorage, sessionStorage, a Server, or a TimestampFree with an accountReading
- 5Under the Hood: Origins, the Storage Event, the Main Thread and CookiesProReading
- 6The Interview Pack: Validation Tasks, the Token Question and Date PuzzlesProReading
- 7Problems: Forms, Storage and Small AppsFree with an accountProblems
- 8Cheat Sheet: Every Field, Every Store and Every Date Trap on One PageProReading
- 9Module Test: Forms, Storage and Small AppsFree with an accountModule test
Part Five
JavaScript in the real world (Pro)
- 1The Picture: A Table With Real Keys, a Bag of Distinct Values, a Function That Pauses, a Pattern for TextReading
- 2Every Method: Map, Set, WeakMap, Iterators, Generators and the Regex Language, One by OneProReading
- 3Full Programs: An LRU Cache, a Word Index, a Paged Feed, a Tokenizer, a Log Parser and a MemoProReading
- 4When to Use Which: Map or Object, Set or Array, WeakMap or Map, Generator or Array, Regex or String MethodsProReading
- 5Under the Hood: V8's Map, When a WeakMap Lets Go, Paused Generators and Regex BacktrackingProReading
- 6The Contest and Interview Pack: Four Patterns, Six Questions and a Gallery of Collection and Regex BugsProReading
- 7Problems: Map, Set, WeakMap, Iterators, Generators and Regular ExpressionsProProblems
- 8Cheat Sheet: The Regex Syntax, and Every Map, Set, WeakMap and Generator Method on One PageProReading
- 9Module Test: Map, Set, WeakMap, Iterators, Generators and Regular ExpressionsProModule test
- 1Measure Before You Guess: How Long, How Much and WhereReading
- 2Every Tool for Measuring and Debugging, One by OneProReading
- 3Seven Programs That Measure, Compare and FixProReading
- 4What Each Operation Costs, and When to Optimise at AllProReading
- 5Under the Hood: V8's Compilers, Hidden Classes and the Garbage CollectorProReading
- 6The Interview Pack: Thirty Output Puzzles, a Fenwick Tree and a Performance Bug GalleryProReading
- 7Problems: Performance, Memory, Debugging and the Interview Output PuzzlesProProblems
- 8Cheat Sheet: Costs, Tools and the Measuring Rules on One PageProReading
- 9Module Test: Performance, Memory, Debugging and the Interview Output PuzzlesProModule test
Learn Pro
Every track, one subscription
Every track's Pro lessons and projects
৳6,999 a year
By card: $9 a month or $59 a year.
Certificates
How certificates work
A certificate is not issued for finishing the lessons. It is issued on a Skill Test.
Timed, in the browser
Questions are drawn at random from a large pool, and the clock runs from the first one.
Your code, hidden tests
Your code runs against tests you cannot see, and submissions are compared for similarity afterwards.
A score, not a tick
The score, 0 to 1000, is printed on the certificate with the band it falls in.
Not proctored, and it says so. Identity is the account and the name on the certificate. There is no webcam and no ID check, and the certificate and its verify page both state that.
Score bands
Score is 0 to 1000, across three sections: concepts, read and debug, build.
- Not yetRetake0–399
- FoundationRetake400–599
- WorkingCertificate issued600–749
- ProficientCertificate issued750–899
- AdvancedCertificate issued900–1000
For employers
Hiring someone?
Every certificate has a public page carrying the score, the three sections, the date and the test version. Ask for the link, not a screenshot.
- Name
- Track
- Learn JavaScript
- Score
- / 1000, with its band
- Sections
- Concepts · Read and debug · Build
- Date, version