function setPropertiesOnObjLiteral(obj) { obj["x"] = 7; obj["y"] = 8; obj["onePlus"] = function(num) { return num + 1; } } function setPropertiesOnArrayObj(arrayObject) { arrayObject['hello'] = function() { return "Hello!" }; arrayObject['full'] = 'stack'; arrayObject[0] = 5; arrayObject['twoTimes'] = function(num) { return num *2; }; } function setPropertiesOnFunctionObj(funcObj) { funcObj.year = 2015; funcObj.divideByTwo = function(num) { return num/2; } funcObj.prototype.helloWorld = function() { return "Hello World"; } return "I am a function object, all functions are objects! Function can have their own properties too!" }