I am going through some code and at the beginning of the script we have var emailID = email
. Later on, the code refers to emailID by going window.emailID
. I am wondering what are the rules that allow you to refer to a variable by going window.variableName?
I cannot post my script online as it is directly related to my work and would violate my contract.