What is a function?
I told you earlier that a method is a set of instructions, grouped together in a special way and given a name as a group.
A function is also a set of instructions, grouped together in a special way and given a name as a group.