Method
:Method is a function when object is associated with it.
let employee = {
user(){
// code
}
}
Function
:When no object is associated with it , it comes to function.
let user = () => {
// code
}
- https://stackoverflow.com/questions/15285293/method-vs-functions-and-other-questions