Introduction to JavaScript Functions

Functions allow us to write reusable blocks of code that we can call and execute from other places in our code. Functions reduce code repetition and help keep our code base small and easy to test.

In this lesson we are going to look at how JavaScript functions work, how we use them along with some advice on how to write maintainable functions.