Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sleep(millis, callback) {
- setTimeout(function()
- { callback(); }
- , millis);
- }
- // Calls
- sleep(3000, main); // => Works fine
- sleep(3000, colorify("First")); // Throws a warning, How to fix it ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement