JSFiddle - React, Tailwind, and code Playground

by Gert Vaartjes

JavaScript

var Person = function (name, age) {
    this.print = function () {
        console.log('Name: ' + name + ' Age: ' + age);
    };
};

(function(Person){
    person = new Person('Gert', 38);
    person.print();
}());