For my module, I need to declare an unknown sized array of user defined objects with two properties: datatype and FullName. I want to be able to set these properties to null upon creation.
I tried the below code.
var result = [{ dtype:null, fname:null, }];
I get the error: Uncaught TypeError: Cannot set property 'dtype' of undefined.
Any thoughts?
var foo = [];