JavaScript Basics
Checking access...
JavaScript is the programming language of the web. Every modern website uses JavaScript to add interactivity, fetch data, and create dynamic user experiences. This module teaches you the language fundamentals.
Module Pages
| Page | What You’ll Learn |
|---|---|
| Variables & Data Types | let, const, var, strings, numbers, booleans, null, undefined, type coercion |
| Operators & Expressions | Arithmetic, comparison, logical, assignment, ternary operator, operator precedence |
| Control Flow | if/else, switch, truthy/falsy values, short-circuit evaluation |
| Loops & Iteration | for, while, do...while, for...of, for...in, break and continue |
| Functions | Function declarations, expressions, arrow functions, parameters, return values, scope |
| Objects | Object literals, properties, methods, this keyword, object destructuring, spread operator |
| Arrays | Array methods (push, pop, map, filter, reduce), spread, destructuring, multidimensional arrays |
| Strings & Template Literals | String methods, template literals, string interpolation, regex basics |
| Numbers & Math | Number methods, Math object, random numbers, rounding, decimals |
| Project: Interactive Calculator | Build a command-line calculator applying all JavaScript basics |
Key Takeaways
By the end of this module, you’ll understand the core JavaScript language — variables, functions, objects, arrays, and control flow — enough to write simple programs and confidently move to advanced topics.