All objects have prototypes, which describe where to look for properties.
const dev = {type: 'dev'}
dev.typeThis creates an object with a property called type. What if you want to make a lot of objects that all share the type property?
const alex = {name: 'alex'}
alex.__proto__ = dev
alex.typeThat __proto__ property is only in new versions of JavaScript. The class keyword also makes declaring this kind of inheritance easy.
The older way is to use the Object global.
const morgan = Object.create(dev, {name: 'morgan'})
morgan.typefunction Foo() {}
const foo = new Foo()
foo instanceof Foo