So i have a constructor function
var APP = function(name){
this.appName = name
}
And a prototype function
APP.prototype.test = function(){
console.log(this.appName)
}
Then i create a new APP() and try out the test function.
var app = new APP("ieps")
var testing = app.test
console.log(app.test()) // returns "ieps"
console.log(testing()) // returns undefined
Why is it that testing() is returning undefined? testing() should do the same thing as app.test() since i'm just referencing app.test.