Hacker News new | ask | show | jobs
by chipsrafferty 650 days 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.