Skip to content

Instantly share code, notes, and snippets.


Malintha/callback1.js Secret

Last active Jun 7, 2016
What would you like to do?
find([1,2], function(results) {
alert("Found other elements "+results);
alert("Meanwhile I show up");
function find(elements, callback) {
//The time consuming operation
setTimeout(function() {
} ,2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.