Files
30-seconds-of-code/glossary/Function.md
2019-08-13 11:19:29 +03:00

9 lines
414 B
Markdown

---
title: Function
tags: 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 (if no `return` statement is present, the default value of `undefined` will be returned instead).
JavaScript functions are also objects.