this in JavaScript

JavaScript object is a powerful data structure that contains both data and methods. Consider the following example.