Is it possible to determine the address of a variable in JavaScript? And if it is possible, how? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is it possible to determine the address of a variable in JavaScript? And if it is possible, how?

Like the way it is in the Python code below; https://code.sololearn.com/c3iRZpnu6VoZ/?ref=app

3rd Jan 2023, 11:49 AM
eMBee
eMBee - avatar
4 Answers
+ 2
Mofetoluwa Balogun I am sorry I wasn't aware that this is not a JavaScript question. Please remove the JavaScript tag to avoid confusion.
3rd Jan 2023, 1:11 PM
Calviղ
Calviղ - avatar
+ 1
It is not possible to determine the address of a variable in Javascript because the variable is stored in heap memory and is dynamically allocated at runtime.
3rd Jan 2023, 11:59 AM
Calviղ
Calviղ - avatar
0
Calviղ here's an example of what I'm talking about in python at line 22 https://code.sololearn.com/c3iRZpnu6VoZ/?ref=app
3rd Jan 2023, 12:14 PM
eMBee
eMBee - avatar
0
Hello my name is Vincent aye I'm a beginner in sololarner and I have questions please 1 how to Change my profile picture because I have tried and it doesn't work 2 if send some one message after the first message I will not be able to send any one again 3 if I come online I will see notification Like ten to seven if i press notification bar I will see only 3 notification 4 please I am very confused here if I go to settings and go to account connection I will see connect to Facebook, Gmail , and gutbit if I login my Gmail and Facebook account to it it will not work please if you know what is happening please try to tell me here is my number:08107368096🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🥺🥺
4th Jan 2023, 12:40 PM
Aye Vincent