concurrency event loop files

This commit is contained in:
brightboost
2021-11-18 21:28:41 +01:00
parent c5760d0af3
commit 63a3fc300e
2 changed files with 13 additions and 0 deletions
@@ -0,0 +1,7 @@
console.log("Hi there");
setTimeout(() => console.log("Sorry I'm late"), 1000);
console.log(add(4,5));
function add(x, y) {
return x + y;
}
@@ -0,0 +1,6 @@
console.log("Hi there");
add(4,5);
function add(x, y) {
return x + y;
}