javascript objects Flashcards

1
Q

In the example above, “this” in object method

A

it refers to the person object:

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

What does a method means

A

A method in js is a function stored as a properties

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

if you access a method without () you will get

A

the function/ function declaration.

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

when a variable is stored as new in objects

A

it turns the variable into an object

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