javascript-oop-2 Flashcards
1
Q
What is this?
A
keyword that refers to the object it belongs to.
2
Q
What does bind do?
A
Bind assigns this to that specific object that is passed as an argument, no matter where it is used.
3
Q
What is the difference between a function and an object literal?
A
An object literal is an object with properties stored within it. A function is a