createTFoot

The createTFoot() method of HTMLTableElement objects returns the element associated with a given

MDN Reference

. If no footer exists in the table, this method creates it, and then returns it.