Created
June 16, 2012 17:21
-
-
Save cocodrino/2942007 to your computer and use it in GitHub Desktop.
code blog - clausuras 3...
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 aumentar_valor2 = (function(x){ | |
var numero = x; | |
return function(){ | |
return numero+=1; | |
}; | |
})(0); | |
console.log(aumentar_valor2()) //1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment