The JavaScript exception "can't access lexical declaration 'X' before initialization" occurs when a lexical variable was accessed before it was initialized.
This happens within any scope (global, module, function, or block) when let or const variables are accessed before the place where they are declared is executed....View this page on GitHub • Report a problem with this content...