HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by isthisreality | Hacker News Reader
Parent
Full thread
isthisreality
·
There's this keyword called "var"
View on HN
akiselev
·
`let` and `const` are transpiled by Typescript/babel to `var`.
mantap
·
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
·
Only if the target is ES3 or ES5.
Reply on news.ycombinator.com