What is the output of following code?
var a = 6; let a = 8; console.log(a);
let throws an error. Here second line throws below error:
Uncaught SyntaxError: Identifier 'a' has already been declared
This behaviour is explained here in ECMAScript.