One way to apply inheritance is by creating objects from other objects. Code Object.create() and add the template object in parentheses.
Object.create()
template
Make sure to pick Object.create, followed by template.
Object.create