Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
isthisreality
on Nov 6, 2019
|
parent
|
context
|
favorite
| on:
TypeScript 3.7
There's this keyword called "var"
akiselev
on Nov 6, 2019
[–]
`let` and `const` are transpiled by Typescript/babel to `var`.
mantap
on Nov 6, 2019
|
parent
|
next
[–]
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
on Nov 6, 2019
|
parent
|
prev
[–]
Only if the target is ES3 or ES5.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: