Web API DOMRectReadOnly y property
The y property in the DOMRectReadOnly interface is used to represent the y-coordinate of the DOMRect object. It is a read-only property. Syntax: let recX = DOMRect.y; Return Value: It returns the y-coordinate of the DOMRectReadOnly object. Example: This example uses DOMRect.y property to get the y-c