Difference between TypeError and ReferenceError
In Javascript, both TypeError and ReferenceError are types of errors that occur at runtime.
TypeError:
As the name suggests TypeError occurs when a value is not of an expected TYPE. For example, if we try to call a non-function value as a function.
c...
nikhilchhabra.hashnode.dev2 min read