Like in c++ we can get the address of a variable using the addressOf operator(&). is there a similar or any different way by which we can get the address of a variable in Javascript?
Asked
Active
Viewed 157 times
0
-
In short: no there isn't via userland code. JS doesn't expose the concept of pointers or memory addresses. If you attach an external debugger to a JS runtime this information might be available. – Ben Aston Oct 21 '20 at 11:54
-
how can we do that? – CHAITANYA PRASAD Oct 22 '20 at 13:00
-
The developer tools of web browsers contain detailed memory analytics functionality (useful for diagnosing memory leaks etc). – Ben Aston Oct 22 '20 at 13:20