In Javascript, can you create an object instance of a method? My code below causes errors.
const myObject = { myMethod: function () {}, objectInstance