What are undeclared and undefined variables?

What are undeclared and undefined variables?

When a variable is not assigned a value, it’s value is automatically set to undefined.
Undeclared variables when accessed throw an error instead of returning an undefined value.