concurrency event loop files
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user