Data Structures Flashcards

1
Q

The two values that do not have properties

A

Null and undefined

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Two main ways to access object properties

A

Val.property (Dot notation)

Val[property] (Sq. br. notation)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When accessing a value’s properties - dot notation accesses the […] name.

A

Literal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When accessing a value’s properties - value[x] accesses the property that x […], converted to a string

A

Evaluates to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Values of the type object are arbitrary collections of [..]

A

Properties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Two uses of curly braces in JS

A

Start a block of statements

Describe an object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Remove a named property from an object using this unary operator

A

Delete

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Binary operator that, when applied to a string and object, tells you if the object has the named property

A

in

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Object.keys() returns the [..] of the object

A

property names

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Object.assign() copies all [..] from one object to another

A

Properties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Immutable objects in JS include [..], Boolean and numbers

A

Strings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Immutable objects in JS include strings, Boolean and [..]

A

Numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Object bindings have the same [..] if they point to the same object

A

Identity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

== operator compares by [..]

A

Identity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

If a property name in brace notation isn’t followed by a name, its value is taken from the [..] with the same name

A

Binding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Strings, numbers and Boolean are not

A

Objects

17
Q

Method for arrays and strings which gives the index of a character (or substring)

A

indexOf()

18
Q

String method which returns a new string containing multiple copies of the original, glued together

A

repeat()

19
Q

A data structure that assigns values to other values

A

Map