Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
akiselev
· 7y ago · 0 comments
`let` and `const` are transpiled by Typescript/babel to `var`.
Comments
[–]
mantap
7y ago
The point is you can put var inside the try because it has function scope. That's what I do, although it is inelegant.
[–]
ascorbic
7y ago
Only if the target is ES3 or ES5.