+ 2
This is just part of code, and it depend of lot of stuff, and also this line is completely valid javascript code, already converted
But full code should look, atleast structure something like this:
https://code.sololearn.com/Whd7SmFUMRqv/?ref=app
+ 2
Javascript run on browser not directly on pc, I never heard about memory address in js.
maybe there are something for node.js I don't know much
Many asked same question on stackoverflow and got answer that it is not possible, but there some alternative ways what kinda works, maybe this can help you
https://stackoverflow.com/questions/72878230/any-way-to-get-javascript-variable-memory-address
https://stackoverflow.com/questions/639514/how-can-i-get-the-memory-address-of-a-javascript-variable/639535
https://stackoverflow.com/questions/50530936/is-there-any-method-to-check-memory-address-of-javascript-variable