JSFiddle - React, Tailwind, and code Playground

Object Constructor

by pmamode

JavaScript

function Person() {
    this.id = null;
    this.name = "Undefined";
    this.type = "Undefined";
    this.parent = [];
    this.tag = [];
}

Person.prototype.save = function() {
    return;
};