Functions & Methods: How Do I Work with Program Functions to Work with Data and Trigger Actions?
摘要
In this chapter we will look at functions, which in JavaScript—as in many other programming languages—are the programmer’s most important workhorse. We’ll discuss how to call JavaScript functions and how to write your own functions, especially event handlers that make your program interactive for the user. We will also see how to extend the functionality of JavaScript using extension libraries from the internet.