Skip to content

Instantly share code, notes, and snippets.

@elyssonmr
Created November 12, 2015 13:52
Show Gist options
  • Save elyssonmr/a225948910e07344d167 to your computer and use it in GitHub Desktop.
Save elyssonmr/a225948910e07344d167 to your computer and use it in GitHub Desktop.
Gist de node
a = 2
function incrementar () {
for (b = 1; b < 100000000; b++) {
b += b
}
a += 1 // valores são passados por cópia e não referência
}
incrementar()
console.log(a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment