The createTFoot() method of HTMLTableElement objects returns the tfoot element associated with a given table.
createTFoot()
MDN Reference