In C\C++, Java, C# code like this
arr = new int[5];
will be stored in memory using 5 * 4 = 40 bytes, since every int just a 32 bits number.
Is it true for JavaScript? Or does it store ints as references to the objects that contain boxed ints?
In C\C++, Java, C# code like this
arr = new int[5];
will be stored in memory using 5 * 4 = 40 bytes, since every int just a 32 bits number.
Is it true for JavaScript? Or does it store ints as references to the objects that contain boxed ints?
Copyright © 2021 Jogjafile Inc.