The sq. variable's middle property is then accessed through dot syntax (sq..heart), which causes the getter for middle to be…