createTFoot

The createTFoot() method of the HTMLTableElement interface creates a element, inserts it as the last child of the given

MDN Reference

, and returns it. If the table already has a element child, this method returns the first such child without creating one.