Last active
December 16, 2017 05:17
-
-
Save maheswaranapk/e934111cef00eed10c3f2ddceb83226c 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
function createVariable() { | |
x = 10; | |
} | |
function updateVariable() { | |
x++; | |
}; | |
function printVariable() { | |
console.log(x) | |
} | |
createVariable(); | |
printVariable(); // 10 | |
updateVariable(); | |
printVariable(); // 11 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment