javascript-custom-methods Flashcards
What is a method?
a function that is a property of an object; a function in an object
How can you tell the difference between a method definition and a method call?
method definition has a function keyword with it being defined while method call just has the method name with parentheses
Describe method definition syntax (structure).
property in an object with function keyword and parameters in parenthesis with code in the code block between the curly braces
Describe method call syntax (structure).
ex: .call( )
How is a method different from any other function?
it is inside an object
What is the defining characteristic of Object-Oriented Programming?
it contains both data (as properties) and behavior (as methods)
What are the four “principles” of Object-Oriented Programming?
abstraction, encapsulation, inheritance, polymorphism
What does API stand for?
Application Programming Interface
What is the purpose of an API?
acts as a middleman between user and system; delivers user response to system, and system response back to user
What is “abstraction”?
generalizing/simplifying what is going on