When ever we declare a variable , it allocate memory location for that variable right
Now I just declare a variable a and assign value as five. so It create a memory location
for a and assign value five right?
var d=6 var f=7 f=d
The above code I wrote where i declare two variable, First variable is d and assign value 6 and second variable is f . So it create memory location for d and f separate and it assign the value 6 and 7 to d and f respectively
Now you see at third line where I mention f=d
that means the value of d will be assigned to f.
Now I will ask my doubt
So the first time when we declare two variable, two memory location was created.
the moment when we say
will they share same memory location?