myTable.div will return "div_undefined". When I'm changing div: 'div_' + this.name
to div: 'div_' + myTable.name
it will throw an error:
Uncaught TypeError: Cannot read property 'name' of undefined at :3:26
. Any Ideas?
var myTable = {
name: 'tablename',
div: 'div_' + this.name
}
console.log(myTable.div);