Loading...
Home > Is Not > Javascript Error Number Is Not A Function

Javascript Error Number Is Not A Function

Contents

One way of doing this would be, for example, as follows: var MyObject = function() {} MyObject.prototype.whoAmI = function() { console.log(this === window ? "window" : "MyObj"); }; var obj = Interestingly this comes next: function h(){function b(){k&&c()} The app does work , just throws a JS error. I will make a few little additions, mostly considering people who are relatively new at JavaScript. Uncaught TypeError: number is not a function