Skip to content

Instantly share code, notes, and snippets.

@ooredroxoo
Created October 3, 2013 06:15
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 ooredroxoo/6805762 to your computer and use it in GitHub Desktop.
Save ooredroxoo/6805762 to your computer and use it in GitHub Desktop.
Revendo como o loop do for funciona.
var n = 10;
var decrementaN = function () {
n = n-1;
};
for (var i = 0; i < n;decrementaN()) {
console.log(n)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment