1// Run anonymous function after 5,000 milliseconds (5 seconds)
2setTimeout(() => {
3 // Run code
4}, 5000);
1function fastFunction (done) {
2 setTimeout(function () {
3 done()
4 }, 100)
5}
6
7function slowFunction (done) {
8 setTimeout(function () {
9 done()
10 }, 300)
11}
12