Javascript objects are dynamic and assigning to a property that doesn't exist is another way of creating it. So after the assignment Points[i] has its very own z property and no longer makes use of ...