Skip to content

Commit 4a63b33

Browse files
authored
Create Looping-Arrays.js
1 parent adbbc37 commit 4a63b33

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Looping-Arrays.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
const jonas = [
2+
'Jonas',
3+
'Rejwar',
4+
' 2037-1999',
5+
'teacher',
6+
['Michael','Peter','steven'],
7+
true
8+
];
9+
const type = [];
10+
11+
12+
for (let i =0 ; i <jonas.length; i++)
13+
{
14+
console.log(jonas[i]);
15+
types[i] =typeof jonas[i];
16+
17+
};
18+
19+
console.log(types);
20+
21+
const years = [1991,1992,1993,1994];
22+
const ages = [];
23+
24+
for( let i= 0; i <years.length; i++ ){
25+
2037 -years[i]
26+
}
27+
28+
console.log(ages);
29+
30+

0 commit comments

Comments
 (0)