Update Function.md

This commit is contained in:
Angelos Chalaris
2018-08-19 22:48:17 +03:00
committed by GitHub
parent 0bdbeecf48
commit 2b096853b1

View File

@ -1,5 +1,5 @@
### Function
Functions are self-contained blocks of code with their own scope, that can be called by other code and are usually associated with a unique identifier.
Functions accept input in the form of arguments and can optionally return an output.
Functions accept input in the form of arguments and can optionally return an output (if no `return` statement is present, the default value of `undefined` will be returned instead).
JavaScript functions are also objects.