Rather than a classical inheritance, in JavaScript you use Prototypes.