Message from JavaScript discussions

March 2019

— What do you mean? I need to assign value to result, not res.


As you wrote it is wrong, take for example jquery which uses the alias $ and assigns it to the jQuery function

— I have tried your method, but I still got undefined.

— Https://

— I know, but it has no effect.

— I can assign value to global variable outside jquery ajax.

— When I output the global variable inside ajax, it has no problem.

— But I got undefined value on Chrome Console.

— I still don't know how to fix the problem.

— There may be some tricks I don't know.

— You don't need to assign the variable with the window object

— Still undefined.