javascript-custom-methods Flashcards
What is a method?
is a function which is a property of a object – two kinds – instance, which are bult in tasks performed and static, which are called directly on an object constructor
How can you tell the difference between a method definition and a method call?
for a definition you are writing the code for the function - in the call you are passing arguments to it
Describe method definition syntax (structure).
var object ={ methodDefinion: function { } }
Describe method call syntax (structure).
dot notation to access the method in the object
How is a method different from any other function?
because it is a property of an object
What is the defining characteristic of Object-Oriented Programming?
objects can contain data as property and data as methods
What are the four “principles” of Object-Oriented Programming?
abstraction, encapsulation, inheritance and polymorphism
What is “abstraction”?
working with complex things in simple ways
What does API stand for?
application programming interface
What is the purpose of an API?
gives programmers a way to interact with the system in a simplified consistent fashion