JSFiddle - React, Tailwind, and code Playground

by rpflorence

JavaScript

var someclass = function(){
    return;
}

someclass.prototype = {
    assignStuff: function(stuff){
        this.stuff = stuff;
    }
}

var instance = new someclass();

instance.assignStuff('dude');

alert(instance.stuff);