I tried the following, trying to pass a variable from one JavaScript file to another JavaScript variable. My first JavaScript file:
var x = "sachin";
My other JavaScript file can't access that x
variable value. How do I solve this? I can access that x
variable and same value in another file.