js Methods Flashcards
What is a method?
method is a function which is a property of an object
How can you tell the difference between a method definition and a method call?
method definition is constructing the method defining the function parameter and return, while calling the method is passing it to a varaible to use it
Describe method definition syntax (structure).
declaring an object, then asining a property, then declaring the method withint the property
Describe method call syntax (structure).
object name.property.function
How is a method different from any other function?
it’s an object with multiple functions
What is the defining characteristic of Object-Oriented Programming?
object oriented programming contains data and behaviours
What are the four “principles” of Object-Oriented Programming?
abstraction, encapsulation, inheritence, polymorphism
What is “abstraction”?
being able to work with complex things in a different way
What does API stand for?
application programing interface
What is the purpose of an API?
define interaction bettween mutliple software