JavaScript – Working with Functions

JavaScript functions are blocks of code designed to perform a particular task when called by another piece of code at some point after creation.