Overriding Methods & Properties

This lesson teaches us how to override methods and properties in both the ES5 and ES6 versions of JavaScript.

Overriding in the ES5 Version

The properties and methods defined on the prototype of a constructor function can be overridden when inherited by another constructor function.

Example

Let’s take a look at an example implementing this:

Get hands-on with 1200+ tech skills courses.