Thank you for your good advice.
Maybe I was not clear with the question, I was curious how to get that information back from some functions (I use msdn constant), and the problem was a pointer. I program with C, C + + and there you can specify a pointer int * a; , and the address &a and similarly. Since there is no such option I thought that JavaScript automatically detects when the pointer is a var;. A friend found it in JavaScript there are no such pointers and took advantage of MPLSScripting Interop.Allocate (), for it come to data.
Now I can continue to adventure through JavaScript.