Skip to content

Instantly share code, notes, and snippets.

@h3nr1ke
Created December 18, 2018 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h3nr1ke/95a0a402db119e713cca72e13a724e16 to your computer and use it in GitHub Desktop.
Save h3nr1ke/95a0a402db119e713cca72e13a724e16 to your computer and use it in GitHub Desktop.
let example ECMA6
/**
*
*/
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