The querySelector of ParentNode for JS returns the first element of the node that matches the selector(s).
node.querySelector(selectors)
Patterns that match elements in a tree structure.