JSFiddle - React, Tailwind, and code Playground
by ethagnawl
JavaScript
function Parent (name) {
this.name = name;
}
Parent.prototype.Child = function Child () {
this.Parent = parent;
console.log(this.Parent)
alert('hello child')
}
var parent = new Parent('foo')
new parent.Child()