3 ms·
"To access errorMsg outside of the try/catch block using const or let you have to define it outside of the block." Just use var, then.
by chipsrafferty 2y ago
"To access errorMsg outside of the try/catch block using const or let you have to define it outside of the block."
Just use var, then.