JSFiddle - React, Tailwind, and code Playground

by r0k3t

JavaScript

var me = { fName: "ken", lName: "n" };

console.log(Object.prototype.isPrototypeOf(me));
console.log(Object.prototype === Object.getPrototypeOf(me));

console.log(Object.prototype === me.prototype);

//var Person = function(first, last) {
//    this.first = first;
//    this.last = last;
//};

//Person.prototype.getName = function() {
//    return this.first + " " + this.last;
//}

//var person = new Person("ken", "n");
//console.log(person.constructor.prototype === Person.prototype);
//console.log(Object.prototype.isPrototypeOf(person));