Advertisement
enissay

Enissay

May 21st, 2014
239
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function sleep(millis, callback) {
  2.     setTimeout(function()
  3.             { callback(); }
  4.     , millis);
  5. }
  6.  
  7. // Calls
  8. sleep(3000, main); // => Works fine
  9. sleep(3000, colorify("First")); // Throws a warning, How to fix it ?
Advertisement
RAW Paste Data Copied
Advertisement