Using functions
Functions are sets of code that are written that allow you to execute a repeatable task. Functions can help code look cleaner by preventing redundency and be used over and over again.
"strlen()" is a built in function that returns the length of a string.
The length of the title "Part 7: Functions" is 17 characters.
Users can define their own functions by setting 'function' 'NAME'()
This is an example of a user defined function.
It can tell you the current time: 09:12am
Return to index