The top read-only property of the DOMRectReadOnly interface returns the top coordinate value of the DOMRect.
top
DOMRectReadOnly
DOMRect
MDN Reference