I want to create/instantiate an array objectArray with several objects, whereby the objects shall contain x and y (empty at the beginning).
The length (amount of objects) of objectArray needs to be the same as the length of i.e. arrayLong. How I have to implement that?
Finally, it should look like that (etc. corresponding to the length of arrayLong):
var objectArray = [ { x: 0, y: 0 }, { x: 0, y: 0 }, { x: 0, y: 0 } etc. ];