javascript-custom-methods Flashcards
What is a method?
A function that is the property of an object
How can you tell the difference between a method definition and a method call
definition: Inside an object
call: Method name followed by argument
Describe method definition syntax (structure)
declare a variable, assign object literal, name of property, and function
Describe method call syntax (structure)
object.function()
How is a method different from any other function?
A method is attached to an object
What is the defining characteristic of Object-Oriented Programming?
Objects can contain both data a properties and behavior a methods
What are the four “principles” of Object-Oriented Programming?
Abstraction
Encapsulation
Inheritance
Polymorphism
What is “abstraction”?
The process of removing physical, spatial, or temporal or attributes in the study of objects or systems to focus attention on details of greater importance it is similar in nature to the process of generalization;
the creation of abstract concept-objects by mirroring common features or attributes of various non-abstract objects or systems of study – the result of the process of abstraction.
-https://en.wikipedia.org/wiki/Abstraction_(computer_science)
What does API stand for?
Application programming interface
What is the purpose of an API?
An API (Application Programming Interface) is a set of functions that allows applications to access data and interact with external software components, operating systems, or microservices. To simplify, an API delivers a user response to a system and sends the system’s response back to a user.
-https://www.bigcommerce.com/blog/what-is-an-api/#what-is-an-api