I am trying to learn inheritance in JavaScript .This article on MDN explains how prototype chain works.
let f = function () { this.a = 1; this.b = 2;