In my nodejs application, I am communicating or say calling functions present in two different js file using window.myfunction = function(){...}
way. Indeed its working perfectly. I went through this question as well which helped me to learn a bit better.
My question/doubt is, that is it OK to use window
object to call user defined functions ?
(OK in terms of performance at client side, cross browser compatibility and but obvious security.) Thanks.
(I am a sort of beginner in javascript programming)