About methods to be "called" from outside of objects, can I say these three ways below act the same inside of my code?
Example:
var boat =
{
peter: () => {console.log("a")},
james: function() {console.log("b")},
john() {console.log("c")}
}
These are the ways I know how to apply functions inside of objects/variables, anyway...
I'd like to know if there is any major difference in each form, since all three would be called the same way:
boat.peter();
boat.james();
boat.john();