JSFiddle - React, Tailwind, and code Playground

JavaScript

var MyClass = function() {
        var _classProperty = "value1";
        this.classProperty = _classProperty;
    };
    
    MyClass.prototype = {
        prototypeProperty : "value2"
    };

    var instance = new MyClass();
    console.log(instance.classProperty);
    console.log(instance.prototypeProperty);