Skip to content

Commit 5dba52c

Browse files
for of uses in array
0 parents commit 5dba52c

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

Data types

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// 1. integer
2+
// 2. float
3+
// 3.bolean
4+
// 4 .Null
5+
// 5. NaN
6+
// 6.number
7+
// 7. string
8+
// 8 empty string
9+
// 9.infint
10+
// 10. infinit nagetive
11+
// 11 . undefind
12+
// 12 .Being int
13+
// 13.symbol
14+
// 15.object
15+

index.html

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

index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const array = ['0', '13', '14','15','16'];
2+
3+
for (const element of array ) {
4+
console.log(element);
5+
}
6+
7+
// Expected output: "a"
8+
// Expected output: "b"
9+
// Expected output: "c"

0 commit comments

Comments
 (0)