Demo

let data = {
title: 'hello world!',
};

function definePropertyData(obj, prop, value) {
Object.defineProperty(obj, prop, {
get: function() {
console.log(111);
return value;
},
set: function(newValue) {
value = newValue;
},
});
}

definePropertyData(data, 'title', data.title);

console.log(data.title); // 111 hello world!
data.title = 38;
console.log(data.title); // 111 38