const name = () => {
b = 12;
console.log(b);
let b;
};
const t = () => {
let c;
c = 12;
console.log(c);
};
t();
name();
why name() throws Reference Error compared to t()
after hoisting the name() becomes like t() then why it throws Error