Skip to content

Commit 45fb67f

Browse files
committed
ejercicio9
1 parent f5d80d9 commit 45fb67f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

ejercicio9.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
3+
function devuelveTrue () {
4+
return true;
5+
}
6+
7+
async function damePromesa() {
8+
return setTimeout(() => console.log("Hola soy una promesa"), 5000)
9+
}
10+
11+
function* generateId () {
12+
let id = 0;
13+
while (true) {
14+
yield id += 2
15+
}
16+
}
17+

0 commit comments

Comments
 (0)