udemy-node-weather-app/playground/aync-basics.js

11 lines
191 B
JavaScript
Raw Permalink Normal View History

2017-11-21 05:34:29 +00:00
console.log("Starting app");
setTimeout(() => {
console.log("First Callback, 2000ms");
}, 2000)
setTimeout(() => {
console.log("Second Callback, 0ms");
}, 0)
console.log("Ending app");