HTML and CSS Reference
Once the instance is populated with the appropriate properties, you can use the methods
defined on the prototype:
Notice that the references to this inside the prototype now refer to the object itself and the
full name of the person is returned.
totype languages use existing objects as the basis for new objects, which are then modi-
Class-like structures sometimes obscures this fact.
Prototype-based languages look unfamiliar to most people who have used other classical
object orientated languages such as C++ or Java. The approach is very powerful however,
and the examples in this topic will favour prototypes to classes as the basic approach to
Prototype-based object orientated languages are relatively rare, which is why they are so
gineers will ever encounter another prototype-based language. In order to succeed with
rather than fight it.