The two functions are not the same; the second code nests the y loop inside the x loop, causing different behavior, while the first runs the loops separately.
y
x
Loading collection data...
The two functions are not the same; the second code nests the
y
loop inside thex
loop, causing different behavior, while the first runs the loops separately.