How can I get the memory address of a variable in JavaScript? And print it out.

how can I get the memory address of a variable in JavaScript? And print out the
c language to take the address symbol & that"s fine. How does JavaScript get the address?
I want to know the first address of a string type (specific memory address in hexadecimal. )

Mar.18,2021
If

js cannot get it, you can see an equivalent address with the heap snapshot, of chrome, but it is not the real memory address. Why are you watching this?


have you solved this problem? I would also like to know whether the memory address is equal if the values of the two basic data types are equal.

Menu