I know that this question has been already asked here.Sorry for that. But, I needed some further clarifications.
My question is if I type let hello='2';
in Ecmascript 6 on the very first line on the script then it will work fine. But, in typescript it will throw the error. If let is block scoped then why did it work on Ecmascript6 and why it did not in typescript.