Data Structures Flashcards
The two values that do not have properties
Null and undefined
Two main ways to access object properties
Val.property (Dot notation)
Val[property] (Sq. br. notation)
When accessing a value’s properties - dot notation accesses the […] name.
Literal
When accessing a value’s properties - value[x] accesses the property that x […], converted to a string
Evaluates to
Values of the type object are arbitrary collections of [..]
Properties
Two uses of curly braces in JS
Start a block of statements
Describe an object
Remove a named property from an object using this unary operator
Delete
Binary operator that, when applied to a string and object, tells you if the object has the named property
in
Object.keys() returns the [..] of the object
property names
Object.assign() copies all [..] from one object to another
Properties
Immutable objects in JS include [..], Boolean and numbers
Strings
Immutable objects in JS include strings, Boolean and [..]
Numbers
Object bindings have the same [..] if they point to the same object
Identity
== operator compares by [..]
Identity
If a property name in brace notation isn’t followed by a name, its value is taken from the [..] with the same name
Binding