I know that it does not make sense to be thinking about an obsolete browser but for the development that I am doing, I must provide support for it. My code works correctly in google chrome, but when I try it in internet explorer 9 I get this error:
SCRIPT1028: An identifier, string or number was expected
What other syntax can I use to avoid it? thank you very much
nombresColumnas=["data0","data1","data2","data3"];
{
[nombresColumnas[0]]: '#33E789', //error here..!
[nombresColumnas[1]]: '#00CCFF',
[nombresColumnas[2]]: '#FFC33E',
[nombresColumnas[3]]: '#384858'
}
output of last code:
{ "data0" : '#33E789'},
{ "data1": '#00CCFF'},
{ "data2": '#FFC33E'},
{ "data3": '#384858'}