concept definition in category javascript

appears as: definition, definition
The Joy of JavaScript

This is an excerpt from Manning's book The Joy of JavaScript.

Dynamic concatenation really embodies the principle of composition very well: combine simple objects to build a complex one. Listing 3.3 shows the Transaction class used in the blockchain application. The first thing you’ll notice is that the definition of calculateHash is not part of the class declaration anymore, as done before. The reason for this is that we’ll use hashing in other places as well, like Block. Listing 3.3 shows the final version of Transaction and the code that integrates all of the mixins into its prototype so that hashing functionality is available to all instances of the class: