With Node JS, is it possible to set multi dimensional arrays separately, using key strings like in PHP ?
myArray[5]['age'] = 38;
myArray[5]['name'] = 'Jack';
myArray[5]['location'] = 'Australia';
I think this is confusing in Node JS:
var myArray = {};
myArray['usedId'] = new Array('Jack', 38, 'Australia');
because I had to do:
console.log (myArray[5]["0"]);
and I'd rather prefer to have a better control using:
console.log (myArray[5]['name']);