Last active
December 18, 2018 13:21
-
-
Save h3nr1ke/9d9c786938e1cd11c9ad66b3cc570a50 to your computer and use it in GitHub Desktop.
ECMA6 var example 0001
This file contains hidden or 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"; | |
console.log(_myVar); | |
var _myFunction = function(){ | |
_myVar = "Apple"; | |
console.log("_myVar -> " + _myVar); | |
}; | |
_myFunction(); | |
console.log(_myVar); | |
// END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment