O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

Given everything you’ve learned in this chapter, you’re all set to add behavior to your objects. Here’s how we do that:

From

Cover of Head First JavaScript Programming

Note

how to add functions to an object?