createTHead

The createTHead() method of the HTMLTableElement interface creates a element, inserts it before the first element child of the given

MDN Reference

that's neither a , or as the last child if no such insertion location is found, and returns it. If the table already has a element child, this method returns the first such child without creating one.
nor a