I am facing an issue with an object that contains 2 nested objects:
object = {
center : { x:1, y:1 },
startPosition : {x:center.x, y:center.y}
}
Unfortunately, I encountered this error:
ReferenceError: center is not defined
Is there a way to access the value of 'center' inside 'startPosition'?