I've written several functions, which I reuse. Is it possible to make it so that the parameters I pass are optional? If they are not passed, it could revert to a default value. For example, in one of my functions, I have two optional parameters. So currently, if I want to call it, I have to write the following
Code:
extractFunction("","") ; - - - To use default values
or
Code:
extractFunction("2","1") ; - - - To use custom values
Is it possible to do something where the person calling the values doesn't need to know that there are 2 parameters? IE, just this
Code:
extractFunction()