Skip to content

Instantly share code, notes, and snippets.

@daytonn
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save daytonn/6c141c6620f442ecde50 to your computer and use it in GitHub Desktop.

Select an option

Save daytonn/6c141c6620f442ecde50 to your computer and use it in GitHub Desktop.
CWCPOOJS - function properties (http://jsbin.com/tuwede/1/edit?js,console)
var myFunction = function() {
console.log("Hello World");
};
myFunction.someProperty = "WTF!? a function with a property?";
console.log(myFunction.someProperty);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment