Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

the difference between function and method

Functions and methods are almost the same thing. They can both be called to execute the code in
them. The difference between a function and a method is that a method will always be attached to
an object. Usually methods change something about that particular object (you can think of the
attached object as a sort of permanent argument passed to the method).
Source by inventwithpython.com #
 
PREVIOUS NEXT
Tagged: #difference #function #method
ADD COMMENT
Topic
Name
3+5 =