Last active
August 29, 2015 14:10
-
-
Save devdays/ded0e360753d1b6c7bdd to your computer and use it in GitHub Desktop.
Object JavaScript two twos
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 two; | |
two = 2; | |
three = 3; | |
incrementValues(); | |
console.log("two after increment = " + two + "\n"); | |
console.log("three after increment = " + three + "\n"); | |
function incrementValues() { | |
var two; | |
two = 2 + 1; | |
three = 3 + 1; | |
console.log("incremented two = " + two + "\n"); | |
console.log("incremented three = " + three + "\n\n"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment