var locationHelper = {
checkLocation : function(prop) {
return prop == 'location';
},
aLocations : new Array()
};
It says "the array literal notation is preferable"
and its underlining the "(" after array.
var locationHelper = {
checkLocation : function(prop) {
return prop == 'location';
},
aLocations : new Array()
};
It says "the array literal notation is preferable"
and its underlining the "(" after array.
Hi Peter,
We've tested this code and it works for us. Where do you run it?
Hi Peter,
This code works for us.
This is just a recommendation to use code[]/code instead of codenew Array()/code.