JSFiddle - React, Tailwind, and code Playground
JavaScript
var Person = function (name, age) {
this.print = function () {
console.log('Name: ' + name + ' Age: ' + age);
};
};
(function(Person){
person = new Person('Gert', 38);
person.print();
}());