I'm currently working on constructing an object that includes an array called stPoints as one of its properties. However, I keep encountering an error message indicating that stPoints is undefined. Can someone provide guidance on the correct method for declaring an array property within an object?
Below is the code snippet in question:
var temp={stName:"#states.stateid#",stPoints:[]};