Chapter 4. Functions for the journeyman: understanding function invocation
This chapter covers
- Two implicit function parameters: arguments and this
- Ways of invoking functions
- Dealing with problems of function contexts
In the previous chapter, you saw that JavaScript is a programming language with significant functionally oriented characteristics. We explored the differences between function call arguments and function parameters, and how the values are transferred from call arguments to function parameters.
This chapter continues in a similar vein, by first discussing something that we kept from you in the previous chapter: the implicit function parameters this and arguments. These are silently passed to functions and can be accessed just ...
Get Secrets of the JavaScript Ninja, Second Edition 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.