How does JavaScript .prototype work?

The whole point revolves around the way that `prototype` keyword allows having class like syntax in JavaScript(that’s when function concept comes in) and its relationship with the actual prototypal inheritance which is mostly related to the way that `Object.create()` and the secret `[[prototype]]` property scaffold out a hierarchical object inheritance.
Source: AirPair