Bytes computation Javascript -


yesterday friend complaining how in bash couldn't sort list of elements because method calling ended return statement.

eventually return instruction in bash returns defined amount of bytes, , reason of concerns.

my question is:

how work memory allocation in javascript? how know how many bytes commands void 0 or undefined are?

that's pretty low level , know js not supposed these kind of tasks, yet curious on best way approach research.

you don't allocate memory in js - environment you. cannot micro-manage it, , absolutely not matter how many bytes value takes. if needed know, you'll have @ implementation of engine using; , exact size of particular values in application can take heap snapshot profiler.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -