I try to use an object value inside the object creation. But the log says the the value is undefined.
btn.wert4 should have the same value as btn.wert1. Is "this" the wrong way?
var btn = [];
btn.push({
wert1: 'aaa',
wert2: 'bbb',
wert3: 'ccc',
wert4: this.wert1
})
console.log(btn);
Thanks for your help!