Goal: you have a javascript object that should have property which is based on other property. When you change the first property and read the other property, changes should be maintained.

Naive try.

And the solution is hidden behind Object.defineProperty():

Correct solution.