I have simple object as follows:
var obj={
 address:"http://localhost:8080",
 ajax:{
  login:address+"/login"
 }
}
I am getting error here login:address+"/login"
Can't I access address variable ?
I have simple object as follows:
var obj={
 address:"http://localhost:8080",
 ajax:{
  login:address+"/login"
 }
}
I am getting error here login:address+"/login"
Can't I access address variable ?
 
    
     
    
    You can't access a value in an object that isn't defined yet. i.e. obj.address doesn't exist because you're not done defining it yet.
You'd need to define the variable outside the object first.
