Linked Questions
17 questions linked to/from Can I reference other properties during object declaration in JavaScript?
-1 votes
3 answers
64 views
Cannot access the variable in the object
I want to access the variable in the object, something like below: var menuSetup = { m : [100,200], height: m[0], // m is not defined } var menuSetup = { m : [100,200], height: this.m[...
-2 votes
1 answer
69 views
JS: use object's property in the object to create another property? [duplicate]
Basically I want to create an object that holds all the backend api urls. backendUrls: { pathParts: { house: '/house', office: '/office' }, baseUrl: 'http://localhost:8080', houseUrl: ...