So here I am having let and function param with same name which throws an error can somebody help me with whats happening around?
function foo(x, y) {
var x = 10; // Allowed
let y = 5; // SyntaxError: Identifier 'y' has already been declared
return x + y;
}