I need a little explanation about the creation of a variable. There is code that creates an object (s_ea) a). So everything is s_ea.blahblahblah. In the documentation they reinitialize the object before changing any new parameters.
var s_ea = s_gi(s_account);
My question is why use "var" in front of the object name since it already exists? The issue I'm facing is I'm trying to reinitialize the object from a function but using "var" makes it a local variable. If reitializing the variable does need to use "var" then how would I do this in a function?