Reference Error vs TypeError
Reference Error
When a variable is called before it is declared. It throws a 'reference error' in that scope.
console.log(a)
//Uncaught ReferenceError: a is not defined.
This will throw a reference error. As 'a' is not yet been declared yet.
For a ...
amanchauhan.hashnode.dev1 min read