What is a function?
A function is just a bit of code that is reusable. Think of it like a set of tasks packaged up. If you ever find yourself writing the same bit of code over and over again all over the place in your script, stop! and write a function instead. Youll be glad you did.
Lets take a real life example of a task that we have to do regularly to see how these things work. Later, well cover a programming example for working out a percentage.
|» Level Basic|
Rating: 8 Votes: 185
|No details available.|
|Download the files used in this tutorial.|
|Download (0 kb)|
|More help? Search our boards for quick answers!|