Menu
I understand that javascript array can be used as a hash table object.
However, I’m having troubles with the following code:
var test = new Array();
function loveClick(display) {
test[display] = something
// do something
}
}
Even for a simple action:
test[‘one’] = 1, it works outside of the function but not inside.
Sorry for being a newbie, but any suggestions on what’s going on and what needs to be done to get array working in a function please?
Thanks!