JavaScript (Week 2) Flashcards
Literal
A way of declaring a data structure and its values at the same time.
Array
Used to store a collection of data items/multiple values under a single variable name.
Element
A single item stored in an array. An element can be of any data type.
Loops
A quick and easy way to do something repeatedly.
Control Flow
The order in which the computer executes statements in a script. The order of execution can change whenever the computer runs across the (extremely frequent) structures that change the control flow, such as conditionals and loops.
Object
A bundle of behavior (methods) and state (properties)
Key
The name used to reference a Value on an Object
Value
The data referenced by a Key
Property
Another word for the Key portion of a key-value pair on an object
Method
A function on an Object
Dot Notation
Notation to access a Value on an Object, explicitly specifies the Key
Bracket Notation
Notation to access a Value on an Object, usually specifies a Key via a variable.
this
A variable that changes depending on the context in which it’s used
Class
A constructor that allows us to create multiple instances
Object Instance
Objects that contain the data and functionality defined in the class