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 & DataA named container that stores a value you can read or change.
let count = 5;Constant
Variables & DataA variable whose value cannot be reassigned after it's set.
const PI = 3.14;Identifier
Variables & DataThe name you give to a variable, function, or class.
Literal
Variables & DataA value written directly in code, like 42, "hello", or true.
Data type
Variables & DataThe category of a value — number, string, boolean, etc.
Integer
Variables & DataA whole number with no decimal part.
int n = 42;Float
Variables & DataA number with a decimal part (technically a floating-point number).
float pi = 3.14;Boolean
Variables & DataA value that is either true or false.
let isOpen = true;String
Variables & DataText — a sequence of characters wrapped in quotes.
let name = "Aisha";Null
Variables & DataAn explicit "no value" marker. Different from "undefined."
let user = null;Undefined
Variables & DataIn JavaScript: a variable declared but not assigned a value.
let x; // undefinedNaN
Variables & Data"Not a Number" — what some math operations produce when they can't return a real number.
0 / 0 // NaNType coercion
Variables & DataAutomatic conversion between types — common in JS, rare in Python.
"5" + 3 // "53"Type casting
Variables & DataExplicitly converting a value from one type to another.
Number("5") // 5Immutable
Variables & DataA value that cannot be changed after it's created.
Mutable
Variables & DataA value that can be modified in place.
Conditional
Control flowCode that branches based on a true/false test.
if (x > 0) {...}If statement
Control flowThe basic conditional construct.
if (cond) {}Else
Control flowThe branch taken when the if-condition is false.
if (x) {} else {}Loop
Control flowCode that repeats until a condition is met.
for (i=0;i<10;i++)For loop
Control flowA loop with an initializer, condition, and increment.
for (let i=0;i<n;i++)While loop
Control flowA loop that runs while a condition is true.
while (cond) {}Iteration
Control flowOne pass through the body of a loop.
Break
Control flowExits the innermost loop immediately.
break;Continue
Control flowSkips to the next iteration of the loop.
continue;Switch
Control flowA multi-way branch based on a single value.
switch (x) {}Recursion
Control flowA function that calls itself.
function f(n) { return f(n-1); }Infinite loop
Control flowA loop whose condition never becomes false. Usually a bug.
Short-circuit evaluation
Control flowLogical operators stop early when the result is determined.
false && x // x not runTruthy
Control flowA value that evaluates to true in a boolean context.
if ("hello") {} // truthyFalsy
Control flowA value that evaluates to false in a boolean context.
if (0) {} // falsyFunction
FunctionsA named, reusable block of code.
function f(x) { return x*2; }Method
FunctionsA function that belongs to an object or class.
arr.push(5)Parameter
FunctionsA name listed in a function's definition for an input.
function f(name) {}Argument
FunctionsThe actual value passed to a function when called.
f("Aisha")Return value
FunctionsThe value a function gives back to the caller.
return total;Side effect
FunctionsA change a function makes outside its return value.
count++Pure function
FunctionsA function with no side effects, returning the same output for the same input.
Callback
FunctionsA function passed as an argument to be called later.
arr.map(x => x*2)Higher-order function
FunctionsA function that takes or returns another function.
map, filter, reduceAnonymous function
FunctionsA function without a name, often used as a callback.
x => x*2Arrow function
FunctionsJavaScript's shorthand function syntax.
(a,b) => a+bClosure
FunctionsA function that "remembers" variables from its enclosing scope.
Recursion
FunctionsA function that calls itself to solve a smaller version of a problem.
Scope
FunctionsThe region where a variable is visible.
Array
Data structuresAn ordered list of values, indexed by position.
let xs = [1,2,3];List
Data structuresPython's name for an array.
xs = [1,2,3]Object
Data structuresA collection of named fields (key-value pairs).
{name: "Aisha"}Dictionary
Data structuresPython's name for an object/map.
{"name": "Aisha"}Map
Data structuresA general data structure of key-value pairs.
new Map()Set
Data structuresA collection with no duplicates.
new Set([1,2,3])Index
Data structuresThe position of an item in an array, starting at 0.
arr[0] // firstKey
Data structuresThe name used to look up a value in an object.
user["name"]Value
Data structuresThe data associated with a key.
user.name = "Aisha"Tuple
Data structuresAn immutable, ordered group of values (mostly Python).
(1, 2, 3)Stack
Data structuresA last-in-first-out collection.
Queue
Data structuresA first-in-first-out collection.
Tree
Data structuresA hierarchical data structure with a root and branches.
Node
Data structuresA single element in a tree or linked list.
Bug
Errors & DebuggingA defect — code that runs but produces the wrong result.
Error
Errors & DebuggingAn explicit failure thrown by the runtime.
TypeErrorException
Errors & DebuggingAn error that can be caught and handled.
try { ... } catch { ... }Stack trace
Errors & DebuggingThe call path leading to an error, useful for debugging.
Syntax error
Errors & DebuggingCode that doesn't parse (missing parenthesis, etc.).
Runtime error
Errors & DebuggingAn error that happens while the program runs, not when it's parsed.
Logic error
Errors & DebuggingCode that runs without errors but produces wrong results.
Debugger
Errors & DebuggingA tool that pauses code execution so you can inspect state.
Breakpoint
Errors & DebuggingA place where the debugger pauses.
Console
Errors & DebuggingThe text-output area of a development environment.
console.log(x)Stack overflow
Errors & DebuggingWhen recursion goes too deep and exhausts the call stack.
Class
OOPA blueprint for creating objects.
class User {}Instance
OOPA specific object created from a class.
new User()Constructor
OOPThe function called when an instance is created.
constructor() {}Inheritance
OOPOne class extending another, gaining its members.
class Admin extends UserEncapsulation
OOPBundling data and behavior, hiding internal details.
Polymorphism
OOPUsing one interface for different types.
Abstraction
OOPHiding complexity behind a simple interface.
API
GeneralA set of routines or endpoints another program can call.
Compiler
GeneralA program that translates source code into another form (often machine code).
Interpreter
GeneralA program that runs source code line-by-line.
IDE
GeneralIntegrated Development Environment — an editor with debugging, autocomplete, etc.
VS Code, IntelliJLibrary
GeneralReusable code others wrote that you import.
React, NumPyFramework
GeneralA larger code base that imposes structure on your app.
Django, RailsRepository
GeneralA version-controlled folder of code, usually on git.
Commit
GeneralA saved snapshot of changes in version control.
git commit -m "..."Branch
GeneralA parallel line of development in version control.
Pull request
GeneralA proposal to merge one branch into another, with review.
Build
GeneralThe process of turning source code into something runnable.
Deploy
GeneralPushing code to a server where users can use it.
Refactor
GeneralChanging code's structure without changing what it does.
Technical debt
GeneralShortcuts that make today easier but make future work harder.
Algorithm
GeneralA defined sequence of steps that solves a problem.
Pseudocode
GeneralEnglish-like sketches of code, used for planning.
REPL
GeneralRead-Eval-Print Loop — an interactive prompt for running code.
python (interactive)Sandbox
GeneralAn isolated environment to run untrusted or experimental code.