JSFiddle - React, Tailwind, and code Playground
JavaScript
// Javascript
Array.prototype.calculateCount = function() {
return this.length;
};
var a = ["one", "two"];
var count = a.calculateCount();
alert(count);
// Many Patterns Exist for object Creation
// Protype Pattern
// Module Pattern
// Revealing Prototype
// Revealing Module
// Dan Wahlins great "structing Javascript " Course