I am trying to create an object which includes an array stPoints as one of its properties.
I am getting an error message saying that stPoints is undefined. What is the proper way to declare an array property within an object?
this is my code:
var temp={stName:"#states.stateid#",stPoints:[]};
This is correct. You must be referencing it incorrectly.