Lessons / Glossary

Glossary

The words that come up in the lessons, explained in a sentence or two.

Argument
A value you pass into a function when you call it. In greet("Sam"), "Sam" is the argument. JavaScript Unit 4
Array
JavaScript's name for an ordered list of values, written in square brackets. JavaScript Unit 5
Boolean
A value that is either true or false. Comparisons give back booleans. JavaScript Unit 2
Bug
A mistake in code that makes it do something you didn't mean.
Call
Running a function by writing its name followed by brackets, like say_hi(). Python Unit 4
Comment
A note in the code that the computer ignores. JavaScript comments start with //. Python comments start with #.
Condition
Something that is either true or false, used by if and while to decide what to do. JavaScript Unit 2
Dictionary
Python's way of storing values under keys, written with curly braces. Python Unit 5
Error message
What the computer prints when it can't run your code. The last line usually says what went wrong and on which line.
Function
A named block of code you can run again whenever you call it. JavaScript Unit 4
Indentation
Spaces at the start of a line. In Python they decide which lines belong to an if, loop or function. Python Unit 2
Index
The position of an item in a list or array. Counting starts at 0. JavaScript Unit 5
Infinite loop
A loop whose condition never becomes false, so it never stops. JavaScript Unit 3
Key
The name a value is stored under in an object or dictionary. Python Unit 5
List
Python's ordered collection of values, written in square brackets. Python Unit 5
Loop
Code that repeats. for and while are the two main kinds. Python Unit 3
None
Python's value for "nothing". Functions with no return give back None. Python Unit 4
Object
JavaScript's way of storing values under keys, written with curly braces. JavaScript Unit 5
Off-by-one error
When a loop runs one time too many or too few, often from mixing up < and <=. JavaScript Unit 3
Operator
A symbol that does something with values, like +, -, === or &&. JavaScript Unit 2
Parameter
A name in a function's brackets that receives an argument. Python Unit 4
Return value
The value a function sends back with return. JavaScript Unit 4
String
Text, written inside quotes. JavaScript Unit 1
Syntax
The rules for how code has to be written, like where brackets and colons go. Breaking them gives a syntax error.
undefined
JavaScript's value for something that hasn't been given a value, like a missing key. JavaScript Unit 5
Variable
A name that stores a value so you can use it later. JavaScript Unit 1