I have a problem that I create a variable with value that not exist yet (other variable)
example:
var a=b;
var b=5;
console.log(a)
//I want result to be 5
I need it to be without wrapping with function or object (unless I can still call "a" as is and not "a()" )
if 'a' can point to 'b' by ref I will do:
var b="temp"
var a=b
b=5
so, is there any way that 'b' will point on same location as 'a' ?