var declaration is function scoped and let declaration is block scoped.
See https://basarat.gitbooks.io/typescript/content/docs/let.html for more details.
var declaration is function scoped and let declaration is block scoped.
See https://basarat.gitbooks.io/typescript/content/docs/let.html for more details.