Coding Glossary — 95 Terms Explained

Every term you'll bump into as a beginner, defined in plain English with code examples where it helps. Use the search to filter instantly.

Variable

Variables & Data

A named container that stores a value you can read or change.

let count = 5;

Constant

Variables & Data

A variable whose value cannot be reassigned after it's set.

const PI = 3.14;

Identifier

Variables & Data

The name you give to a variable, function, or class.

Literal

Variables & Data

A value written directly in code, like 42, "hello", or true.

Data type

Variables & Data

The category of a value — number, string, boolean, etc.

Integer

Variables & Data

A whole number with no decimal part.

int n = 42;

Float

Variables & Data

A number with a decimal part (technically a floating-point number).

float pi = 3.14;

Boolean

Variables & Data

A value that is either true or false.

let isOpen = true;

String

Variables & Data

Text — a sequence of characters wrapped in quotes.

let name = "Aisha";

Null

Variables & Data

An explicit "no value" marker. Different from "undefined."

let user = null;

Undefined

Variables & Data

In JavaScript: a variable declared but not assigned a value.

let x; // undefined

NaN

Variables & Data

"Not a Number" — what some math operations produce when they can't return a real number.

0 / 0 // NaN

Type coercion

Variables & Data

Automatic conversion between types — common in JS, rare in Python.

"5" + 3 // "53"

Type casting

Variables & Data

Explicitly converting a value from one type to another.

Number("5") // 5

Immutable

Variables & Data

A value that cannot be changed after it's created.

Mutable

Variables & Data

A value that can be modified in place.

Conditional

Control flow

Code that branches based on a true/false test.

if (x > 0) {...}

If statement

Control flow

The basic conditional construct.

if (cond) {}

Else

Control flow

The branch taken when the if-condition is false.

if (x) {} else {}

Loop

Control flow

Code that repeats until a condition is met.

for (i=0;i<10;i++)

For loop

Control flow

A loop with an initializer, condition, and increment.

for (let i=0;i<n;i++)

While loop

Control flow

A loop that runs while a condition is true.

while (cond) {}

Iteration

Control flow

One pass through the body of a loop.

Break

Control flow

Exits the innermost loop immediately.

break;

Continue

Control flow

Skips to the next iteration of the loop.

continue;

Switch

Control flow

A multi-way branch based on a single value.

switch (x) {}

Recursion

Control flow

A function that calls itself.

function f(n) { return f(n-1); }

Infinite loop

Control flow

A loop whose condition never becomes false. Usually a bug.

Short-circuit evaluation

Control flow

Logical operators stop early when the result is determined.

false && x // x not run

Truthy

Control flow

A value that evaluates to true in a boolean context.

if ("hello") {}  // truthy

Falsy

Control flow

A value that evaluates to false in a boolean context.

if (0) {}  // falsy

Function

Functions

A named, reusable block of code.

function f(x) { return x*2; }

Method

Functions

A function that belongs to an object or class.

arr.push(5)

Parameter

Functions

A name listed in a function's definition for an input.

function f(name) {}

Argument

Functions

The actual value passed to a function when called.

f("Aisha")

Return value

Functions

The value a function gives back to the caller.

return total;

Side effect

Functions

A change a function makes outside its return value.

count++

Pure function

Functions

A function with no side effects, returning the same output for the same input.

Callback

Functions

A function passed as an argument to be called later.

arr.map(x => x*2)

Higher-order function

Functions

A function that takes or returns another function.

map, filter, reduce

Anonymous function

Functions

A function without a name, often used as a callback.

x => x*2

Arrow function

Functions

JavaScript's shorthand function syntax.

(a,b) => a+b

Closure

Functions

A function that "remembers" variables from its enclosing scope.

Recursion

Functions

A function that calls itself to solve a smaller version of a problem.

Scope

Functions

The region where a variable is visible.

Array

Data structures

An ordered list of values, indexed by position.

let xs = [1,2,3];

List

Data structures

Python's name for an array.

xs = [1,2,3]

Object

Data structures

A collection of named fields (key-value pairs).

{name: "Aisha"}

Dictionary

Data structures

Python's name for an object/map.

{"name": "Aisha"}

Map

Data structures

A general data structure of key-value pairs.

new Map()

Set

Data structures

A collection with no duplicates.

new Set([1,2,3])

Index

Data structures

The position of an item in an array, starting at 0.

arr[0] // first

Key

Data structures

The name used to look up a value in an object.

user["name"]

Value

Data structures

The data associated with a key.

user.name = "Aisha"

Tuple

Data structures

An immutable, ordered group of values (mostly Python).

(1, 2, 3)

Stack

Data structures

A last-in-first-out collection.

Queue

Data structures

A first-in-first-out collection.

Tree

Data structures

A hierarchical data structure with a root and branches.

Node

Data structures

A single element in a tree or linked list.

Bug

Errors & Debugging

A defect — code that runs but produces the wrong result.

Error

Errors & Debugging

An explicit failure thrown by the runtime.

TypeError

Exception

Errors & Debugging

An error that can be caught and handled.

try { ... } catch { ... }

Stack trace

Errors & Debugging

The call path leading to an error, useful for debugging.

Syntax error

Errors & Debugging

Code that doesn't parse (missing parenthesis, etc.).

Runtime error

Errors & Debugging

An error that happens while the program runs, not when it's parsed.

Logic error

Errors & Debugging

Code that runs without errors but produces wrong results.

Debugger

Errors & Debugging

A tool that pauses code execution so you can inspect state.

Breakpoint

Errors & Debugging

A place where the debugger pauses.

Console

Errors & Debugging

The text-output area of a development environment.

console.log(x)

Stack overflow

Errors & Debugging

When recursion goes too deep and exhausts the call stack.

Class

OOP

A blueprint for creating objects.

class User {}

Instance

OOP

A specific object created from a class.

new User()

Constructor

OOP

The function called when an instance is created.

constructor() {}

Inheritance

OOP

One class extending another, gaining its members.

class Admin extends User

Encapsulation

OOP

Bundling data and behavior, hiding internal details.

Polymorphism

OOP

Using one interface for different types.

Abstraction

OOP

Hiding complexity behind a simple interface.

API

General

A set of routines or endpoints another program can call.

Compiler

General

A program that translates source code into another form (often machine code).

Interpreter

General

A program that runs source code line-by-line.

IDE

General

Integrated Development Environment — an editor with debugging, autocomplete, etc.

VS Code, IntelliJ

Library

General

Reusable code others wrote that you import.

React, NumPy

Framework

General

A larger code base that imposes structure on your app.

Django, Rails

Repository

General

A version-controlled folder of code, usually on git.

Commit

General

A saved snapshot of changes in version control.

git commit -m "..."

Branch

General

A parallel line of development in version control.

Pull request

General

A proposal to merge one branch into another, with review.

Build

General

The process of turning source code into something runnable.

Deploy

General

Pushing code to a server where users can use it.

Refactor

General

Changing code's structure without changing what it does.

Technical debt

General

Shortcuts that make today easier but make future work harder.

Algorithm

General

A defined sequence of steps that solves a problem.

Pseudocode

General

English-like sketches of code, used for planning.

REPL

General

Read-Eval-Print Loop — an interactive prompt for running code.

python (interactive)

Sandbox

General

An isolated environment to run untrusted or experimental code.