element.shadowRoot property returns the open shadow root that is hosted by the element, null if no open shadow root is present.
Note: This property is read-only.
|Object||Returns the open shadow root that is hosted by the element.|
|null||If no open shadow root is present.|
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.