Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

question about arrays

I have a further question about arrays

 

I have an array called xyz which has mixed types, it is actually

 

[0] - string, [1] - Int (short Int), [2....22] - float. 

 

Will JS save this in the most efficient way or will it use worst case (string 2 bytes for each char) for each array member?

 

Would I be better splitting it up into 2 variables (1 x string), (1 x Int) and an array of Floats?

Best Answer
0 Votes
0 REPLIES 0