Created
December 18, 2018 13:36
-
-
Save h3nr1ke/e7824b952fd6644815380a8702ca798e to your computer and use it in GitHub Desktop.
const 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
/** | |
* | |
*/ | |
const DELAY = 1000; // a constant MUST be initialized | |
setTimeout(function(){ | |
console.log("After 1 second…"); | |
}, DELAY); | |
DELAY = 2000; // error | |
//END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment