Suppose I have the first.js file where I declared and initialized the array with valid value.
var arrVar = document.getElementsByTagName("label");
I want to use this variable "arrVar" in second.js file. How can I acheive this?
I tried adding below statment in the second.js file at the beginning.
<script type="text/javascript" src="/first.js"></script>
But I am getting error "Unexpected Token <"