JSFiddle - React, Tailwind, and code Playground
JavaScript
function Piece(liveArg) { this.isLive = liveArg }
Piece.prototype.isLive = true; // PUBLIC VARIABLE
function Pawn() {}
Pawn.prototype = new Piece(false); // Here I am achiveing prototypical inheritance.
Pawn.isLive = true
console.log(Pawn.isLive);
Pawn.isLive = false;
console.log(Pawn.isLive);