Skip to content

Instantly share code, notes, and snippets.

@devdays
Last active August 29, 2015 14:10
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 devdays/ded0e360753d1b6c7bdd to your computer and use it in GitHub Desktop.
Save devdays/ded0e360753d1b6c7bdd to your computer and use it in GitHub Desktop.
Object JavaScript two twos
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