JavaScript (JS) has a special way for objects to share traits. It might sound like inheritance, a concept from other languages, but it works differently.
In JS, objects can link to another object to access methods or properties. This is called protot...