[Solved] Can some one explain how the last output resulted for the below javascript code? [closed]


ok, Quentin was faster 😉

to make things clearer I post it anyway:
the output is somthing like

k = "1", v = 1
k = "2", v = 2
k = "4", v = 4
k = "6", v = 6
k = "5", v = Object {6: 6}
k = "3", v = Object {4: 4, 5: Object {6: 6}}
k = "", v = Object {1: 1, 2: 2, 3: Object {4: 4, 5: Object {6: 6}}}

so the last key is the key of the whole = root object node and has no key

2

solved Can some one explain how the last output resulted for the below javascript code? [closed]