Skip to content

Commit 239bcba

Browse files
author
Douglas1688
committed
[ADD] Clase 8 de JS For in - For of
1 parent 80559e9 commit 239bcba

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

clase_8/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<html lang="en">
2+
<head>
3+
<meta charset="UTF-8">
4+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<script src="script.js"></script>
7+
<title>Document</title>
8+
</head>
9+
<body>
10+
11+
12+
</body>
13+
</html>

clase_8/script.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
let nombres = ['Pedro','Juan','María','Jessenia','Douglas'];
2+
3+
for (let elem in nombres) {
4+
console.log(elem);
5+
}
6+
7+
for (const i of nombres) {
8+
console.log(i);
9+
}

0 commit comments

Comments
 (0)