API-First: How to Write Useful Functions in JavaScript
Functions are the bread and butter of a computer program. They help encapsulate business logic, allowing you to easily reuse and build on your existing code. If done wrong, however, functions can easily become confusing, repetitive, and frustrating to use. In this article I'll lay the foundation for you to consistently create intuitive and useful functions.
Each function has a pre-determined way that it can be called. A signature, footprint, or interface, if you will. In this article, I'll be