JSFiddle - React, Tailwind, and code Playground

JavaScript

(function() {
    var bar;
    
    function Foo() {
        //Constructor function properties and methods
    }
    
    //Protoytpe methods and properties
    Foo.prototype = {
        a: 1,
        b: 2,
        c: function() {
            return this.a + this.b;
        }
    }
    
    bar = new Foo();
    console.log('c is: ' + bar.c());
    
})();