Skip to content

Instantly share code, notes, and snippets.

@kanakiyajay
Created August 3, 2014 09:10
Show Gist options
  • Save kanakiyajay/1a8af41def9d3c72e9dc to your computer and use it in GitHub Desktop.
Save kanakiyajay/1a8af41def9d3c72e9dc to your computer and use it in GitHub Desktop.
let keyword in ecmascript 6
for (let i = 0; i < 10; i++) {
x += 10;
}
console.log(x);
try {
console.log(i);
} catch(e) {
console.log(
'i does not exist here!'
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment