I want to set value of "text" property to "value" property.
Example.html:
<script>
var obj = {
text: "Hello",
value: this.text
/*
value: function() {
return this.text;
}
*/
};
console.log(obj.text); // Output: Hello
console.log(obj.value); // Output: undefined
// console.log(obj.value()); // Output: Hello
</script>
Why?