Why cant I add a new array or object through this way:
Code:
function blabla(location) {
location = [];
};
var examplevar = [];
blabla(examplevar[4])When it does work if i do this, which should be the same thing?:
Code:
[/CODE][CODE]function blabla(location) {
examplevar[4] = [];
};
var examplevar = [];
blabla(examplevar[4])Thanks in advance,