What is the best way to pass the var full to function b. I don\'t want to use global variables. Is return the only option.
Unless you dont want function b to exist, or used outside outside of the click function, i would move it outside the anonymous function. And then just specify the arguments in the definition then just pass them like normal
Example