The TypeError object represents an error when an operation could not be performed, typically (but not exclusively) when a value is not of the expected type.| developer.mozilla.org