Here's one that has bothered me for some time, the answer is probably simple yet, so far has eluded me. When I write code and want to pass the arguments from one function to another I often, if not always have to do something like this (example from some code I'm working on, it works but, looks sloppy):
Notice the comment. If I pass arg1 and arg2 directly to the moz_fade function, I get an error like img1 is not defined or has no properties. Using the above code, it works. There must be a better way.
x=arg1;// why are these two declarations necessary?