JSFiddle - React, Tailwind, and code Playground

by Narayan Prusty

JavaScript

var object1 = {"name" : "narayan"};
var object2 = {};
object2.constructor.prototype = object1;

console.log(object2.name);