Created
July 6, 2016 16:31
-
-
Save MarcoWorms/013117b94af9b94ff4e9baa632be503c to your computer and use it in GitHub Desktop.
Closure 2
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 (carro) { | |
var comida = 'pizza' | |
function filho () { | |
console.log(comida) | |
function neto () { | |
console.log(carro) | |
} | |
neto() | |
} | |
filho() | |
} | |
pai('fusca') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment