var a='A' function ca(){ console.log(a) let a ='a'; } ca(); // Uncaught ReferenceError: // Cannot access 'a' before initialization