js put a function as an object key code example Example: adding function to objects js var myObj = { myFunc: function(param){ //do stuff } }