Properties of javascript function
Test to see how to access properties of a javascript funciton
by jessekinsman
JavaScript
var test = function(myObject) {
this.test1 = "test1";
this.test2 = "test2";
function testFunction(testing) {
console.log(testing);
};
test.testFunction = testFunction;
console.log(this.test1);
console.log(this.test2);
console.log(
}
test({test: "test1"});
test.testFunction("testing");