Re:TypeScript 3.7
by isthisreality on Tuesday November 05, 2019 @08:14PM
(#21458796)
There's this keyword called "var"
[ Parent
| on HN ]
`let` and `const` are transpiled by Typescript/babel to `var`.
The point is you can put var inside the try because it has function scope. That's what I do, although it is inelegant.