Created
April 17, 2018 14:44
-
-
Save codermarcos/fa392767f808f42f6bc91653f3f911fb to your computer and use it in GitHub Desktop.
Referêcia circular
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = {}; | |
var b = {}; | |
a.b = b; // Cria a referencia em a para o B | |
b.a = a; // Cria a referencia em b para o A, | |
console.log(a); | |
// a: Object { b: [circular object] } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment