is not a function typeerror?
Uncaught TypeError: undefined is not a function Occurs when attempting to call a value like a function, where the value is not a function. For example: var foo = undefined; foo(); ... The other variations such as “number is not a function” occur when attempting to call a number like it was a function.