JSFiddle - React, Tailwind, and code Playground

by tmyie

HTML

<p></p>

JavaScript

var Person = function(name, age) {
    this.name = name;
    this.age = age
};

var newUser = Person('John', 104);

console.log(newUser.name);