There is such a structure (which it would be desirable not to change dramatically):
var wrapper1 = function () { var wrapper2 = function () { return Math.PI; }; }; I tried using var caller = new wrapper1; call caller.wrapper2() , but returns undefined.
Tell me how to be, please. There is no way to understand the op in js.