JavaScript for Beginners glossary
31 terms you will meet in the free JavaScript for Beginners course, each explained in one or two sentences.
A
- Array
- An ordered list of values accessed by zero-based index.
- Arrow function
- A compact function syntax, such as (a, b) => a + b.
- async/await
- Syntax that lets code wait for promises in a readable, top-to-bottom style.
- Asynchronous
- Code that starts a slow task and continues running, handling the result later.
B
- Boolean
- A value that is either true or false.
C
- Callback
- A function passed to another function to be called later.
- const
- Keyword that declares a block-scoped variable that cannot be reassigned.
D
- DOM
- Document Object Model, the browser's tree of objects representing a web page.
E
- Event listener
- A function registered to run when an event, such as a click, happens on an element.
- Exception
- An error thrown while a program runs, which can be caught with try...catch.
F
- fetch
- The built-in browser function for making HTTP requests, which returns a promise.
- Function
- A reusable block of code that can take inputs (parameters) and return a value.
I
- Index
- The numbered position of an item in an array or string, starting at 0.
J
- JSON
- JavaScript Object Notation, a text format for exchanging data between programs.
L
- let
- Keyword that declares a block-scoped variable that can be reassigned.
- Loop
- A structure that repeats a block of code, such as for, while or for...of.
M
- Method
- A function stored as a property of an object, such as array.push().
N
- null
- A value a programmer assigns on purpose to mean "no value."
O
- Object
- A collection of key-value pairs that groups related data and behavior.
- Off-by-one error
- A bug where a loop or index runs one step too far or stops one step short.
P
- Parameter
- A named placeholder in a function definition for a value passed in when it is called.
- Promise
- An object representing a future value that will be fulfilled or rejected.
R
- Return value
- The value a function sends back to its caller with the return keyword.
S
- Scope
- The region of code where a variable exists and can be used.
- Strict equality (===)
- A comparison that is true only when both value and type match, without conversion.
- String
- A sequence of characters (text) written in quotes or backticks.
T
- Template literal
- A string in backticks that can embed values with ${...}.
- Truthy and falsy
- How values behave in conditions; falsy values are false, 0, "", null, undefined and NaN, and everything else is truthy.
- Type coercion
- JavaScript's automatic conversion of a value from one type to another during an operation.
U
- undefined
- The value of a variable or property that has not been given a value.
V
- Variable
- A named container that stores a value so a program can use it later.
Put these terms to work
The JavaScript for Beginners course uses every one of these terms in short lessons with instant-feedback questions. It takes about 130 minutes and ends with a free certificate of completion.
Start the course Course overview