03-14-2019
10:35
- last edited on
03-14-2019
12:05
by
JonFitbit
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-14-2019
10:35
- last edited on
03-14-2019
12:05
by
JonFitbit
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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?

