circular references in js code example
Example: create circular reference javascript
function Foo() {
this.abc = "Hello";
this.circular = this;
}
var foo = new Foo();
function Foo() {
this.abc = "Hello";
this.circular = this;
}
var foo = new Foo();