JSFiddle - React, Tailwind, and code Playground

by jcreamer898

JavaScript

var Person, seth;

seth = new Person();

Person = function(firstName, lastName) {
    this.first = ko.observable(firstName);
    this.last = ko.observable(lastName);
};

Person.prototype.fullName = function() {
    return this.firstName + " " + this.lastName;  
};

Person.prototype.hasManager = function() {
    return !!this.Manager;
};

var seth = new Person('seth', 'browleit');

console.log(seth.first());