DOMException: NotAllowedErrorDOMException: NotAllowedError
A browser API call was blocked because it requires user interaction or permission that was not granted.
ReferenceError: Cannot access before initializationA variable declared with let or const was accessed before its declaration in the temporal dead zone.
Variables declared with let and const are hoisted but not initialized until the declaration is reached. Accessing them before the declaration line (the temporal dead zone) throws this error.
Move the variable declaration before the line where it is first accessed. Reorganize your code so the variable is declared before any usage. If you need hoisting behavior, use var (though let/const are preferred).
console.log(x); let x = 5; // ReferenceError: Cannot access 'x' before initializationDOMException: NotAllowedErrorA browser API call was blocked because it requires user interaction or permission that was not granted.
TypeError: Cannot assign to read only propertyAn attempt was made to write to a property that is read-only, either because the object is frozen or the property is defined as non-writable.
ETIMEDOUTA connection or operation timed out because the remote host did not respond in time.
TypeError: Cannot add property, object is not extensibleAn attempt was made to add a property to an object that has been made non-extensible.
ERR_INVALID_RETURN_VALUEA function returned a value of an unexpected type.
RangeError: Maximum call stack size exceededThe JavaScript call stack has been exhausted, usually due to infinite or excessively deep recursion.