The above code defines a method named HowMuch that calls the HowMuchIf() function. When the function is called the parentheses are not used. That’s because we want the function itself not the result of it. This is how the function becomes a method of the object.

Up to now we have the function HowMuchIf() that creates HowMuch method of the MyCustomizedComputer object, the HowMuch method within the MyCustomizedComputer object, and three instances of the MyCustomizedComputer object.

To find the value of DanComputer we have to call HowMuch method. We use the same method for the other two instances.