Skip to content

Instantly share code, notes, and snippets.

@roykolak
Last active December 22, 2015 13:18
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 roykolak/6477881 to your computer and use it in GitHub Desktop.
Save roykolak/6477881 to your computer and use it in GitHub Desktop.
var lookUpISBN = function(isbn, callback) {
var results = {...}
callback(results);
}
(function() {
var displaySearchResults = function(results, $container) {
$container.text(results);
};
lookUpISBN('123456', function (results) {
displaySearchResults(results, $('.someContainer'));
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment