Procedural programming is an extension of structured programming, where code is organized into reusable procedures or functions. These functions can take input parameters, perform specific tasks, and optionally return a value. JavaScript is inherently procedural, as it allows you to define and call functions throughout your code.
In this chapter, you will learn how to define functions and use them in your code. Please keep in mind that our coverage of functions in JavaScript in incomplete. We will cover more advanced topics in the chapter on functional programming.