O'Reilly logo

Expert JavaScript by Mark E. Daggett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 2

image

Functions

As you learned in the previous chapter, almost everything in JavaScript is an object, including functions. However, functions are much more than just bags for containing properties; they are how work gets done in the language. Typically, developers become aware of the specifics of functions only when something they wrote explodes in their face. My goal in this chapter is to expose the intricacies of JavaScript functions to you, which will hopefully save you from having to pull syntactic shrapnel from your codebase.

A word of caution before I begin: JavaScript is only as good as its interpreter. Although the concepts discussed ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required