can't use arrow functions with methods on objects code example
Example: how to make arrow functions as object methods
var chopper = {
owner: 'Zed',
getOwner: function() {
return this.owner;
}
};
// or
var chopper = {
owner: 'Zed',
getOwner() {
return this.owner;
}
};