undefined occupies memory, has a fixed size, and is stored in the stack area, so z occupies memory. xy objects exist in the heap area, and their memory addresses are stored in stack memory. Because y has more undefined, it occupies more heap memory than x.
undefined occupies memory, has a fixed size, and is stored in the stack area, so z occupies memory. xy objects exist in the heap area, and their memory addresses are stored in stack memory. Because y has more undefined, it occupies more heap memory than x.