JavaScript Complete Course
Learn modern JavaScript from your first script to closures, async code, modules and the event loop, with projects you build as you go.
- Beginner
- 54 lessons
- 23 hours
Learn modern JavaScript from your first script to closures, async code, modules and the event loop, with projects you build as you go.
Declare variables with let and const, why var is avoided, and naming conventions.
Primitive types, objects, null versus undefined, and checking types with typeof.
Arithmetic, assignment, logical and comparison operators, type coercion and why strict equality is the default.
Create and combine strings, template literals, and everyday string methods.
Number behaviour, floating-point surprises, parsing numbers, rounding and the Math object.
Make decisions with if and else, truthy and falsy values, switch and the ternary operator.
Repeat work with each loop type, break and continue, and which loop suits arrays and objects.
Define and call functions, default parameters, return values and function expressions.
Arrow function syntax, implicit returns, and how arrows differ from regular functions.
Create arrays, read and change elements, add and remove items, and check length.
Create objects, read and update properties, methods, and bracket notation for dynamic keys.
What the DOM is, and selecting elements with querySelector, querySelectorAll and getElementById.
Update text, attributes, classes and styles safely, and why textContent beats innerHTML for user data.
Listen for clicks, input and keyboard events, the event object, and preventDefault.