Created
September 22, 2015 23:54
-
-
Save jorgeguberte/7075d7e8e32158415c65 to your computer and use it in GitHub Desktop.
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
//Essa é a função de callback | |
mostraPosts(posts){ | |
//mostra os posts | |
} | |
pegaPosts(callback){ | |
//Pega os posts, sei lá como. | |
posts = [] | |
callback(posts); | |
} | |
pegaPosts(mostraPosts); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment