Ok I am coming into a stumbling block no matter what language I am using. I am trying to understand when I need to pass arguments in a Function and when I don’t need to pass arguments in a function. Can someone give me some direction on where to find guidance on this?
Share
Does the function need external data to perform its job? If so, then you need to pass arguments.
If the function doesn’t need external data to perform its job, you don’t need to worry about passing arguments.
That handles creating your own functions. If you’re simply trying to call somebody else’s function, you need to pass arguments for each required function parameter.