Created
December 18, 2018 13:27
-
-
Save h3nr1ke/95a0a402db119e713cca72e13a724e16 to your computer and use it in GitHub Desktop.
let example ECMA6
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
/** | |
* | |
*/ | |
var _myVar = "Banana"; | |
var _myFunction = function(){ | |
_myVar = "Apple" | |
let _mySecondVar = "Avocado" | |
console.log("_myVar -> " + _myVar); | |
console.log("_mySecondVar -> " + _mySecondVar); | |
}; | |
_myFunction(); | |
console.log(_myVar); | |
console.log(_mySecondVar); | |
//END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment