objectName.methodname = functionName; var myObj = { myMethod: function(params) { // ...do something } // OR THIS WORKS TOO myOtherMethod(params) { // ...do something else } };