How can I convert this Python line of code to JavaScript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I convert this Python line of code to JavaScript?

return hex(id(self.table[hash]))

3rd Jan 2023, 10:14 AM
eMBee
eMBee - avatar
5 Answers
+ 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
3rd Jan 2023, 11:00 AM
PanicS
PanicS - avatar
+ 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
3rd Jan 2023, 12:40 PM
PanicS
PanicS - avatar
0
Thank you very much PanicS
3rd Jan 2023, 11:41 AM
eMBee
eMBee - avatar
0
PanicS is there a way we can determine the memory address of a variable in JavaScript?
3rd Jan 2023, 11:48 AM
eMBee
eMBee - avatar
0
Thanks once again PanicS
3rd Jan 2023, 1:55 PM
eMBee
eMBee - avatar