Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js after settimeout

function doHomeWork(subject, callback){
    setTimeout(callback,500);
    console.log("doing my homework:", subject)
}

doHomeWork("Maths", function(){console.log("finished my homework");});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #settimeout
ADD COMMENT
Topic
Name
1+8 =