let and const are hoisted in a different scope but they are in the temporal dead zone. That's why they throw the error 'let variable cannot be accessed before declaration'
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hoisting
let and const are hoisted in a different scope but they are in the temporal dead zone. That's why they throw the error 'let variable cannot be accessed before declaration'