CHAPTER 5
Functions
CHAPTER CONTENTS
5.2 Defining and Calling Functions
5.3 Examples and More Examples
5.3.1 Simple One-Line Functions
5.3.3 Passing Object References as Arguments
5.8 Function Declarations versus Function Expressions*
Introduction
A function is an object that carries out a specific computation, such as figuring sales tax, finding words in a document, or calculating the shortest route between two points on a map. A function ...
Get Programming with JavaScript: Algorithms and Applications for Desktop and Mobile Browsers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.