JavaScript glossary
JavaScript glossary for learners
A JavaScript glossary for learners covering core terms such as variables, functions, objects, arrays, promises, async/await, DOM, events, modules, classes, and regular expressions.
Popular JavaScript terms
JavaScript definitions and lessons
JavaScript
JavaScript is the programming language of the web, used for interactive pages, browser APIs, servers, tools, and full-stack applications.
- what is JavaScript
- learn JavaScript
- JavaScript tutorial
Variable
A variable is a named storage location for a value. Modern JavaScript code usually declares variables with let or const.
- JavaScript variables
- let const JavaScript
- declare variable JavaScript
Data type
A data type describes the kind of value JavaScript is working with, such as string, number, boolean, object, null, undefined, symbol, or bigint.
- JavaScript data types
- types in JavaScript
- primitive types JavaScript
Function
A function is a reusable block of JavaScript behavior that can receive arguments, return a value, and capture surrounding state.
- JavaScript functions
- function declaration JavaScript
- learn JavaScript functions
Arrow function
An arrow function is a compact function syntax with lexical this behavior, often used for callbacks and short expressions.
- JavaScript arrow functions
- arrow function syntax
- fat arrow JavaScript
Object
An object stores keyed values and behavior. Objects are the foundation for many JavaScript patterns, prototypes, and classes.
- JavaScript objects
- object properties JavaScript
- learn JavaScript objects
Array
An array is an ordered list-like object with methods for adding, removing, searching, transforming, and reducing values.
- JavaScript arrays
- array methods JavaScript
- learn JavaScript arrays
Map and Set
Map stores key-value pairs and Set stores unique values. Both are built-in collection types for structured data.
- JavaScript Map
- JavaScript Set
- Map and Set tutorial
Closure
A closure is a function together with access to the lexical environment where it was created, even after that outer scope has finished running.
- JavaScript closure
- what is closure JavaScript
- lexical environment JavaScript
Prototype
A prototype is the object JavaScript checks when a property is not found directly on an object, enabling prototypal inheritance.
- JavaScript prototype
- prototype inheritance
- prototypal inheritance JavaScript
Class
A class is syntax for creating constructor-based object patterns with methods, inheritance, static members, and private fields.
- JavaScript classes
- class syntax JavaScript
- JavaScript inheritance
Module
A module is a JavaScript file with explicit imports and exports, making code easier to organize and reuse.
- JavaScript modules
- import export JavaScript
- ES modules
Promise
A promise represents an asynchronous result that may fulfill or reject, letting JavaScript code sequence async work clearly.
- JavaScript promises
- Promise tutorial
- asynchronous JavaScript
Async/await
Async/await is syntax for writing promise-based asynchronous JavaScript in a style that reads like sequential code.
- async await JavaScript
- learn async await
- JavaScript async functions
Event loop
The event loop coordinates JavaScript tasks, rendering, macrotasks, and microtasks so asynchronous work can run on a single thread.
- JavaScript event loop
- microtasks macrotasks
- event loop tutorial
DOM
The Document Object Model is the browser's object representation of a page, allowing JavaScript to read and change elements.
- JavaScript DOM
- Document Object Model
- DOM tutorial
Event delegation
Event delegation handles events on a shared ancestor instead of attaching separate handlers to many child elements.
- event delegation JavaScript
- JavaScript browser events
- DOM events
Fetch
Fetch is the browser API for making network requests with promises, commonly used to load JSON and communicate with APIs.
- JavaScript fetch
- Fetch API
- network requests JavaScript
LocalStorage
LocalStorage is a browser storage API for saving string data across page reloads and browser sessions.
- localStorage JavaScript
- browser storage
- client side storage
JSON
JSON is a text format for structured data. JavaScript commonly uses JSON.stringify and JSON.parse to exchange data.
- JSON JavaScript
- JSON parse stringify
- JavaScript JSON tutorial
Regular expression
A regular expression is a pattern for matching text, useful for search, validation, parsing, and string replacement.
- JavaScript regular expressions
- RegExp JavaScript
- regex tutorial
Web component
A web component is a browser-native component model built around custom elements, templates, slots, and shadow DOM.
- web components JavaScript
- custom elements
- shadow DOM