UNPKG

nectarjs

Version:

Javascript's God Mode. No VM. No Bytecode. No GC. Just native binaries.

15 lines (12 loc) 267 B
function classProto() { this.hello = "Hello"; function containedProto() { this.inside = "Inside containedProto"; } this.inception = new containedProto(); } var gretter = new classProto(); console.log(gretter.hello); console.log(gretter.inception.inside);