Skip to content

Instantly share code, notes, and snippets.

@devdays

devdays/ojs-twotwos.js

Last active Aug 29, 2015
Embed
What would you like to do?
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