+ 1

In javascript, what is the difference between a function and a method?

Is it as simple as a method being a preexisting function? ...Or is there more to it?

20th May 2017, 2:57 PM
Damien Lucchese
Damien Lucchese - avatar
2 Answers
+ 3
so much to write. learn more from. http://stackoverflow.com/q/155609/7016383
20th May 2017, 3:10 PM
MR Programmer
MR Programmer - avatar
+ 3
in simple console.log(""); console is object log is method log(""); is a function ie no object
20th May 2017, 3:13 PM
MR Programmer
MR Programmer - avatar