Prototype: An existing object that a new object is based on, either by cloning or by delegation. In prototype-based programming, a prototype is an existing object that serves as the template for new objects. A new object can copy the prototype's properties, or simply refer back to it for anything it does not define itself.
JavaScript works this way. Every object has a prototype, and when you access a property the object does not have, JavaScript looks it up on the prototype instead. Methods defined on Array.prototype are available on every array for this reason.
What should you keep in mind with Prototype?
Modern JavaScript classes are built on top of prototypes, so understanding them helps explain behaviour that otherwise seems magical. It also explains a rule: do not modify built-in prototypes like Object.prototype. Every object in the program, including those in libraries, would be affected.
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use this skill when designing clean architecture for a new microservice, when refactoring a monolith to use bounded contexts, when implementing hexagonal or onion architecture patterns, or when debugging dependency cycles between application layers.