I would like to know if in JavaScript is there a possibility to know the memory location and memory used by an object
Any help would be appreciated
I would like to know if in JavaScript is there a possibility to know the memory location and memory used by an object
Any help would be appreciated
Not from within JavaScript. The language provides no tools to directly manage memory. Memory management is the responsibility the runtime environment.
Some environments may provide you with some of that information to help with debugging / performance optimisation. Chrome Developer Tools, for example, has a Heap Snapshot feature in the profiles tab.
Definitely it won't show memory address, else it would be a big security loophole. Similar query is here.