js get sibling before an element code example Example: select sibling javascript let nextSibling = currentNode.nextElementSibling;