Is there any difference in storage location between var a = {b: 1} and var a = {b: {c: 1}}

if so, is there any difference in the location of the storage?

Jun.11,2022

(1) create the variable a point to the object {bv1}; / / there is a a in the stack, assign an address to {bvl1} and point to
(2) create the variable a to point to the object {b: C: 1}. / / declare through var that a is overwritten at this time, assign an address to {code 1}} and point to
(3) {code 1} is no longer used, and js's garbage collection mechanism will collect


is asking if there is any difference in the memory address pointed to?

Menu