JSFiddle - React, Tailwind, and code Playground
JavaScript
function Person(name){
this.name = name;
}
Person.prototype.handshake = function(){
console.log(this.name + " handshake");
}
var sandro = new Person('sandro');
sandro.handshake();
console.log(sandro.constructor);
console.log(sandro.constructor.prototype.handshake);