Here is my code
var chars = new function() {
this.array = new Array(0);
this.add = function(x, y, speed, size, color, ai) {
this.array[array.length] = {x: x, y: y, size: size, color: color, ai: ai};
}
}
On line 35, the only line in the function add I am getting the error "array is not defined" why is this happening and yes I did try,
chars.array[array.length] = {x: x, y: y, size: size, color: color, ai: ai};