Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- console.log("First Line");
- var async = function(func,time){
- setTimeout(()=>{
- console.log(func());
- },time);
- }
- function sayHello(){
- return "Hello world javascript";
- }
- async(sayHello,3000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement