How can I specify a default getter for a prototype? With default getter I mean a function that is called if obj.undefinedProperty123 is called.
obj.undefinedProperty123
I tried
I am not sure about what you are asking. But If you want a method to be called when the user attempts to Access object.nonExistingProperty . I dont think there is any way to do that.
object.nonExistingProperty