I have one global variable in one JavaScript file and I using it in another JavaScript file.
but sometime we not use that JavaScript file(where we define Global variable) so I am getting error like var_Name is not defined error. So any way in JavaScript to check variable is defined or not and if its not defined than how to defined that variable run time.
var_Global?var_Abc=var_Global:var_Global=somevalue
when if global variable is defined than I want to assign that variable to another variable and if not than I want to define that variable.
Thanks.