JSFiddle - React, Tailwind, and code Playground

by robert_schutt

JavaScript

var FileName = function (n, d, s) {
      this.name = n;
      this.date = d;
      this.service = s;
};

FileName.prototype.logInfo = function(){
      console.log(this.name);
};

var m0140415 = new FileName("m0140415", 20140415, "morning");
m0140415.logInfo();