Skip to content

Instantly share code, notes, and snippets.

@cyrilletuzi

cyrilletuzi/loop.ts

Created Jan 29, 2017
Embed
What would you like to do?
for (var i: number = 0; i < 10; i++) {}
i; // 10, error prone
for (let i: number = 0; i < 10; i++) {}
i; // undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment