Analyze the code below:
"let x = 10"; console.log(x);
What exception will be thrown as a result of its execution attempt?
- RangeError
- TypeError
- SyntaxError
- ReferenceError
Explanation & Hint:
The code will throw an exception when executed: Uncaught ReferenceError: x is not defined. |