S
Sunny
Hi,
Is there a way in javascript to create Dynamic arrays or arrays on
fly.
Something Like:
var "ptsgN"+sd = new Array();
Here sd is incrementing by 1.
I have lots of data that I am putting in arrays.
I dont have the exact no.
i dont want to do that:
var ptsgN1 = new Array();
var ptsgN2 = new Array();
var ptsgN3 = new Array();
var ptsgN4 = new Array();
.....
Any Advice.
Is there a way in javascript to create Dynamic arrays or arrays on
fly.
Something Like:
var "ptsgN"+sd = new Array();
Here sd is incrementing by 1.
I have lots of data that I am putting in arrays.
I dont have the exact no.
i dont want to do that:
var ptsgN1 = new Array();
var ptsgN2 = new Array();
var ptsgN3 = new Array();
var ptsgN4 = new Array();
.....
Any Advice.