why is the following code showing undefined? Are we not allowed to create an array with a single value? Putting two values won\'t show this error. Is this a pro
undefined
The above example defining an array called tech with 21 positions. You have to difine it like that
var tech = new Array('21'); alert(tech[0]);