DEV Community

Discussion on: Need Help About JavaScript Error Log

Collapse
 
highcenburg profile image
Vicente G. Reyes

I'm not a javascript developer but it is said here that

A TypeError is thrown when an operand or argument passed to a function is incompatible with the type expected by that operator or function.

In other words for example:

>>> 1 + '1'

would give you a TypeError because you can't add a string and an integer.