Not getting what things a function needs to work.
So can anyone tell me the things I need to learn to make a function work? and frankly speaking, I simply don't understand functions.
Steven Parker187,066 Points
A function is basically a "subprogram".
It can be called on to run by another part of the program (including from a function). Like the program itself, it contains a sequence of statements to be performed.
Optionally, a function can be given (we usually say "passed") one or more values to work with. And when it finishes, it can return a value back to the part of the program that called it.
Tina Maddox28,102 Points
Please let me know if you have any questions.