Last active
July 6, 2016 16:49
-
-
Save MarcoWorms/db3266e4c1b7d58f41f027f7cf874e27 to your computer and use it in GitHub Desktop.
Closure 1
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
function pai (umNumero) { | |
var metadeDoNumero = umNumero / 2 | |
function filho () { | |
console.log(umNumero) | |
console.log(metadeDoNumero) | |
} | |
filho() | |
} | |
pai(2) | |
pai(300) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment