Skip to main content

Skillber v1.0 is here!

Learn more

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

PageWhat You’ll Learn
Variables & Data Typeslet, const, var, strings, numbers, booleans, null, undefined, type coercion
Operators & ExpressionsArithmetic, comparison, logical, assignment, ternary operator, operator precedence
Control Flowif/else, switch, truthy/falsy values, short-circuit evaluation
Loops & Iterationfor, while, do...while, for...of, for...in, break and continue
FunctionsFunction declarations, expressions, arrow functions, parameters, return values, scope
ObjectsObject literals, properties, methods, this keyword, object destructuring, spread operator
ArraysArray methods (push, pop, map, filter, reduce), spread, destructuring, multidimensional arrays
Strings & Template LiteralsString methods, template literals, string interpolation, regex basics
Numbers & MathNumber methods, Math object, random numbers, rounding, decimals
Project: Interactive CalculatorBuild 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.