JavaScript fundamentals
JavaScript runs in every browser and on servers through Node. It is quick to start and full of small rules that decide whether code does what you meant, so this course works through them in order.
What you'll learn
16 chapters, then the quiz
- 01IntroductionWhere JavaScript runs and what it is for.
- 02Syntax and statementsSemicolons, blocks and strict mode.
- 03Variables and scopelet, const, var and where each one lives.
- 04Data typesPrimitives, objects and typeof.
- 05Comparison and coercionWhy 0 == "0" is true and === is safer.
- 06StringsQuotes, templates and the useful methods.
- 07Numbers and mathsOne number type, and what that costs.
- 08ArraysOrdered lists and the methods that build new ones.
- 09ObjectsKey and value pairs, and how they are copied.
- 10FunctionsDeclarations, arrow functions and this.
- 11Conditions and loopsBranching, iterating and stopping early.
- 12ClassesSyntax over prototypes, and what it hides.
- 13The DOMReading and changing the page.
- 14EventsListening for what the visitor does.
- 15Promises and asyncWork that finishes later.
- 16ModulesSplitting code across files.