JSFiddle - React, Tailwind, and code Playground
by cgough
JavaScript
function Person (first, last, age, eyecolour ) {
this.firstName = "Gene";
this.lastName = "Wilder";
this.age = "36";
this.eyeColor = "Green";
}
// takes all of the above and adds the name property to the list.
Person.prototype.name = function() {
return this.firstName+ "" + this.lastName;
}
console.log(Person);