I have created the following jsfiddle which highlights my problem. http://jsfiddle.net/UTG7U/
var ExampleObject = function() { var myArray = new Array();
alert(myArray); should work fine I think
alert(myArray);