November 2019
Beginner
560 pages
13h 36m
English
• What a Function Is
• Why Functions Are Useful
• Structuring Functions
• Calling Functions in Your Scripts
As a JavaScript coder, you need to know how to use functions in your scripts. Functions can make your scripts more portable and easier to debug.
This chapter covers the basics of using functions. First, you will find out what a function is and why functions are useful. Then, you will learn how to define and structure functions. Finally, you will learn how to call functions in your scripts.
A function is basically a little script within a larger script. Its purpose is to perform a single task or a series of tasks. What a function does depends on what code you place ...