Created
May 12, 2016 22:21
-
-
Save iSkore/926596fcfe1249086b86238e18793d33 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Below is an example of when to use `var` and `let` | |
*/ | |
'use strict'; | |
let a = 'a'; | |
var b = 'b'; | |
const c = 'c'; | |
{ | |
let d = 'd'; | |
} | |
{ | |
var e = 'e'; | |
} | |
console.log( a ); | |
console.log( b ); | |
console.log( c ); | |
//console.log( d ); => throws error | |
console.log( e ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment