4 ms·There's this keyword called "var"by isthisreality 7y agoThere's this keyword called "var"akiselev 7y ago`let` and `const` are transpiled by Typescript/babel to `var`.mantap 7y agoThe 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 agoOnly if the target is ES3 or ES5.