In javascript, the way to declare a var is: var msg = 'hello', and it is simply to call msg will get the value of 'hello' if I am now have a number of var, e.g. msg_1, msg_2 ... msg_n would there be a way to get the value by calling something like
for (var i = 0; i < n; i++)
{
var var_name = 'msg_' + i;
alert (var_name)?
}