Let name it as A.js and B.js.
On page load of an aspx page, I am trying to load JS in the order A.js,B.js.
I used a method in B.js which is declared in A.js. But I am getting an error function undeclared alert in console.
But when I tried alerting either from B.js or A.js, script is working fine. It is taking the method and page is good. Why so?
What I need to do for making it work without alerting?