JSFiddle - React, Tailwind, and code Playground
by harperj1029
JavaScript
var Person = function(name, age) {
this.name = name;
this.age = age;
this.description = function(){
return this.name + ' is ' + this.age + ' years old.'
}
};
var joeBlow = new Person('Joe Blow', 40);
document.write(joeBlow.description());