Looking the code-snippet:
var a;
var b;
var c;
var d;
a = undefined;
b = null;
d = 15;
d = undefined;
Now, I want to know the memory allocation (in terms of heap, stack or whatever) while writing this code.
For variables a, b, c, d -- what is the size of memory allocation? or in what order? also, is there any memory allocation for a, c, d? also, if we are setting value undefined for a or d -- what does it mean? does it mean that memory allocation is to be done and 'undefined' to be stored in it? or for d -- release 'memory-allocation' and do nothing?
Very confused. Anybody ... have some idea?
Note: Already seen
kindly don't mark duplicate.