Javascript compiler error in Chrome's console
I was doing some javascript coding in chrome's console. When I do: console.log(x); let x; It gives "ReferenceError: x is not defined" But when I run the below code: let x; console.log(x); It consoles "undefined". Q1: Why is it happening?…