JavaScript Concept Galaxy
8 core JavaScript concepts - each with theory, interactive demos, live code playground, and challenges.
Variables
var, let & const
Variables are named containers that store data values. JavaScript offers three declaration keywords - var, let, and const - each with different scoping and mutation rules.
Strings
Text & String Methods
Strings are sequences of characters representing text. JavaScript provides 20+ built-in methods to search, transform, extract, and format text data.
Math Functions
Numbers & Calculations
The JavaScript Math object is a built-in namespace with mathematical constants and functions for rounding, roots, powers, random numbers, and more.
Conditionals
if/else & Decision Logic
Conditionals let your code make decisions. Based on whether a condition is truthy or falsy, different code paths execute - this is how programs respond dynamically to different inputs.
Loops
for, while & Iteration
Loops let you repeat code multiple times without writing it over and over. JavaScript has several loop types - each optimized for different situations.
Arrays
Lists & Array Methods
Arrays are ordered collections that store multiple values in one variable. JavaScript arrays come with powerful built-in methods for adding, removing, searching, sorting, and transforming data.
Functions
Reusable Code Blocks
Functions are reusable, named blocks of code that perform a task. They are the fundamental building blocks of JavaScript programs - enabling code reuse, abstraction, and clean organization.
DOM Manipulation
Interacting with the Page
The DOM (Document Object Model) is how JavaScript talks to HTML. Using DOM methods, you can select elements, change content and styles, create new elements, and respond to user actions - all without reloading the page.
Ready to Test Your Knowledge?
24 challenges across all topics. Earn badges as you go!
🏆 Start Challenge Mode